Show
Ignore:
Timestamp:
05/21/15 16:11:54 (2 days ago)
Author:
robert
Message:

Fixed memory error associated with reading over the end of container due to an unbounded while loop.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgQt/QGraphicsViewAdapter.cpp

    r13482 r14044  
    9292#endif 
    9393 
    94     _width = _graphicsScene->width(); 
    95     _height = _graphicsScene->height(); 
     94    _width = static_cast<int>(_graphicsScene->width()); 
     95    _height = static_cast<int>(_graphicsScene->height()); 
    9696 
    9797    _qimages[0] = QImage(QSize(_width, _height), s_imageFormat);