]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
patch on regression in selection mode activation
authorasl <asl@opencascade.com>
Tue, 17 Nov 2015 08:50:34 +0000 (11:50 +0300)
committerasl <asl@opencascade.com>
Tue, 17 Nov 2015 08:50:34 +0000 (11:50 +0300)
src/HYDROGUI/HYDROGUI_LandCoverMapOp.cxx

index cb073ade21cd7d91db68e65683ac16b88f1179f9..321a4e1924e7c589ad79dad21d055d66cc68685e 100644 (file)
@@ -440,11 +440,11 @@ void HYDROGUI_LandCoverMapOp::onCreatePreview()
 
   if ( aViewManager && myPreviewPrs && !myEditedObject.IsNull() )
   {
-    myPreviewPrs->update( false, false );      
     if ( myOperationId == RemoveLandCoverId ||
          myOperationId == MergeLandCoverId ||
          myOperationId == ChangeLandCoverTypeId )
       myPreviewPrs->setSelectionMode( AIS_Shape::SelectionMode( TopAbs_FACE ) ); 
+    myPreviewPrs->update( false, false );      
   }
   
   module()->update( UF_OCCViewer | UF_FitAll );