]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESHGUI/SMESHGUI.cxx
Salome HOME
PAL9022. Attach generated mesh elements to whatever meshed shape, SHELL or SOLID
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 074eb1fa4b4de389f7d929021681b92a9a4dd417..02c8251023b2977c32b4aa48d122716df23f563b 100644 (file)
@@ -587,6 +587,7 @@ namespace{
          }
          anActor->SetControlMode(aControl);
          anActor->GetScalarBarActor()->SetTitle(aTitle.latin1());
+         SMESH::RepaintCurrentView();
        }
       }
     }
@@ -1169,8 +1170,13 @@ bool SMESHGUI::OnGUIEvent( int theCommandID )
          }
        }
       }
-      SALOME_ListIO l1;
-      aSel->setSelectedObjects( l1 );
+      
+      if (anAction == SMESH::eErase) {
+       SALOME_ListIO l1;
+       aSel->setSelectedObjects( l1 );
+      }
+      else
+       aSel->setSelectedObjects( selected );
       break;
     }