]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix bug with bad painting of view window when rubber band is empty
authorvsr <vsr@opencascade.com>
Fri, 31 Oct 2014 07:07:48 +0000 (10:07 +0300)
committerAnthony Geay <anthony.geay@edf.fr>
Fri, 28 Nov 2014 14:21:14 +0000 (15:21 +0100)
src/Qtx/QtxRubberBand.cxx

index 16dca8b96c549c4883f48f8e8e74663a77ce2c6d..9a72c5846e9a3fdc32f11d876946ac41577a0d1f 100755 (executable)
@@ -205,8 +205,8 @@ void QtxAbstractRubberBand::updateMask()
   if ( isClosed() )
     r += createRegion( myPoints.last(), myPoints.first() );
 
-  setMask( r );
-
+  if ( !r.isEmpty() )
+    setMask( r );
 }