Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/pdf/ReaderWriterPDF.cpp

    r12292 r13041  
    11/* -*-c++-*- OpenSceneGraph - Copyright (C) 1999-2008 Robert Osfield 
    22 * 
    3  * This software is open source and may be redistributed and/or modified under   
     3 * This software is open source and may be redistributed and/or modified under 
    44 * the terms of the GNU General Public License (GPL) version 2.0. 
    55 * The full license is in LICENSE.txt file included with this distribution,. 
    6  *  
     6 * 
    77 * This software is distributed in the hope that it will be useful, 
    88 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1010 * include LICENSE.txt for more details. 
    1111*/ 
     
    3434        void create(int width, int height) 
    3535        { 
    36             if (_image->data() && width==_image->s() && height==_image->t())  
     36            if (_image->data() && width==_image->s() && height==_image->t()) 
    3737            { 
    3838                return; 
     
    4444            _image->allocateImage(width, height, 1, GL_RGBA, GL_UNSIGNED_BYTE); 
    4545            _image->setPixelFormat(GL_BGRA); 
    46             _image->setDataVariance(osg::Object::DYNAMIC);             
     46            _image->setDataVariance(osg::Object::DYNAMIC); 
    4747            _image->setOrigin(osg::Image::TOP_LEFT); 
    4848 
     
    5151            _surface = cairo_image_surface_create_for_data( 
    5252                    _image->data(), 
    53                     CAIRO_FORMAT_ARGB32,  
    54                     width, height,  
     53                    CAIRO_FORMAT_ARGB32, 
     54                    width, height, 
    5555                    _image->getRowSizeInBytes()); 
    5656 
    5757            // create a context for the surface 
    58             _context = cairo_create(_surface);             
     58            _context = cairo_create(_surface); 
    5959        } 
    6060 
     
    7272 
    7373    protected: 
    74      
     74 
    7575        virtual ~CairoImage() 
    7676        { 
     
    138138 
    139139            PopplerDocument* doc = poppler_document_new_from_file(uri.c_str(), NULL, NULL); 
    140             if (!doc)  
     140            if (!doc) 
    141141            { 
    142142                OSG_NOTICE<<" could not open("<<filename<<"), uri="<<uri<<std::endl;