From: ouv Date: Wed, 17 Nov 2010 16:12:25 +0000 (+0000) Subject: Minor fix X-Git-Tag: DIAGRAM_0_1~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c1aee99d0c6f9afa7c9fb68663b4fa819f3378ff;p=modules%2Fgui.git Minor fix --- diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index 1be4f0016..8db01df0b 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -222,10 +222,14 @@ QImage GraphicsView_ViewPort::dumpView( bool theWholeScene ) { if( GraphicsView_Object* anObject = dynamic_cast( anIter.next() ) ) { - if( aRect.isNull() ) - aRect = anObject->getRect(); - else - aRect |= anObject->getRect(); + QRectF anObjectRect = anObject->getRect(); + if( !anObjectRect.isNull() ) + { + if( aRect.isNull() ) + aRect = anObject->getRect(); + else + aRect |= anObject->getRect(); + } } }