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-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f20e2ee023310e53837c75adde2e4668a7f151dc;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 ); }