Salome HOME
Minor fix.
authorouv <ouv@opencascade.com>
Wed, 21 Aug 2013 10:15:20 +0000 (10:15 +0000)
committerouv <ouv@opencascade.com>
Wed, 21 Aug 2013 10:15:20 +0000 (10:15 +0000)
src/HYDROGUI/HYDROGUI_PrsImage.cxx

index 4e8471e129b59eb97c172e05427742576a711f86..4c749d571e9cb3645bfb4564cda42d0be0784e51 100644 (file)
@@ -213,7 +213,8 @@ bool HYDROGUI_PrsImage::select( double theX, double theY, const QRectF& theRect
 void HYDROGUI_PrsImage::unselect()
 {
   HYDROGUI_Prs::unselect();
-  myPrsImageFrame->updateVisibility();
+  if( !myIsTransformationPointPreview )
+    myPrsImageFrame->updateVisibility();
 }
 
 //================================================================
@@ -223,7 +224,8 @@ void HYDROGUI_PrsImage::unselect()
 void HYDROGUI_PrsImage::setSelected( bool theState )
 {
   HYDROGUI_Prs::setSelected( theState );
-  myPrsImageFrame->updateVisibility();
+  if( !myIsTransformationPointPreview )
+    myPrsImageFrame->updateVisibility();
 }
 
 //================================================================