]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor fix
authorouv <ouv@opencascade.com>
Wed, 17 Nov 2010 16:12:25 +0000 (16:12 +0000)
committerouv <ouv@opencascade.com>
Wed, 17 Nov 2010 16:12:25 +0000 (16:12 +0000)
src/GraphicsView/GraphicsView_ViewPort.cxx

index 1be4f0016e9ace51407dd7fc62cc0487feb897dc..8db01df0b1eb6a019b990a3db8bb4606cd22fca3 100644 (file)
@@ -222,10 +222,14 @@ QImage GraphicsView_ViewPort::dumpView( bool theWholeScene )
   {
     if( GraphicsView_Object* anObject = dynamic_cast<GraphicsView_Object*>( 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();
+      }
     }
   }