From f20e2ee023310e53837c75adde2e4668a7f151dc Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 31 Oct 2014 10:07:48 +0300 Subject: [PATCH] Fix bug with bad painting of view window when rubber band is empty --- src/Qtx/QtxRubberBand.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); } -- 2.39.2