From: vsr Date: Fri, 31 Oct 2014 07:07:48 +0000 (+0300) Subject: Fix bug with bad painting of view window when rubber band is empty X-Git-Tag: V7_5_0b1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c9096e35338f76f2ad66cfd77d59850d51d62ca;p=modules%2Fgui.git Fix bug with bad painting of view window when rubber band is empty --- diff --git a/src/Qtx/QtxRubberBand.cxx b/src/Qtx/QtxRubberBand.cxx index 16dca8b96..9a72c5846 100755 --- a/src/Qtx/QtxRubberBand.cxx +++ b/src/Qtx/QtxRubberBand.cxx @@ -205,8 +205,8 @@ void QtxAbstractRubberBand::updateMask() if ( isClosed() ) r += createRegion( myPoints.last(), myPoints.first() ); - setMask( r ); - + if ( !r.isEmpty() ) + setMask( r ); }