From c1aee99d0c6f9afa7c9fb68663b4fa819f3378ff Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 17 Nov 2010 16:12:25 +0000 Subject: [PATCH] Minor fix --- src/GraphicsView/GraphicsView_ViewPort.cxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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(); + } } } -- 2.39.2