]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fixed a regression: wrong display of shape by choosing different shape type when...
authormpa <mpa@opencascade.com>
Fri, 17 Jan 2014 10:06:21 +0000 (10:06 +0000)
committermpa <mpa@opencascade.com>
Fri, 17 Jan 2014 10:06:21 +0000 (10:06 +0000)
src/EntityGUI/EntityGUI_SubShapeDlg.cxx

index 268d906774a3ee031a121e9fb1008a46dabf82a6..a68b3db20ca17a0b7ae08ee334f53be573ccb357 100644 (file)
@@ -739,24 +739,21 @@ void EntityGUI_SubShapeDlg::activateSelection()
           new SALOME_InteractiveObject (aMainEntry.in(), "GEOM", "TEMP_IO");
         if ( view->isVisible( io ) ) {
           Handle(GEOM_AISShape) aSh = GEOMBase::ConvertIOinGEOMAISShape( io, true );
-          if(!aSh.IsNull()) {
+          if(!aSh.IsNull())
             myDmMode = aSh->isTopLevel() ? aSh->prevDisplayMode() : aSh->DisplayMode();
-          }
-          // Hide main shape, if explode on VERTEX
-          if (shapeType() != TopAbs_VERTEX) {
-            aDisplayer->Erase(myObject, false, false);
-            myIsHiddenMain = true;
-          }
         }
         else
           myDmMode = SUIT_Session::session()->resourceMgr()->integerValue( "Geometry", "display_mode" );
       }
     }
     // Mantis issue 0021421: do not hide main shape, if explode on VERTEX
-    if (shapeType() == TopAbs_VERTEX) {
-      if (myIsHiddenMain)
-        aDisplayer->Display(myObject);
+    if (shapeType() != TopAbs_VERTEX) {
+      aDisplayer->Erase(myObject, false, false);
+      myIsHiddenMain = true;
     }
+    else
+      aDisplayer->Display(myObject);
+
     aDisplayer->SetDisplayMode(myDmMode);
 
     if(!isApply) {