Salome HOME
Fix for problem: Preferences-Mesh-General tab: Display modes ?Nodes? and ?Shrink...
[modules/smesh.git] / src / SMESHGUI / SMESHGUI.cxx
index 074eb1fa4b4de389f7d929021681b92a9a4dd417..349eb3ec4bbe6bded65ffa9b4e08992647849d3e 100644 (file)
@@ -587,6 +587,7 @@ namespace{
          }
          anActor->SetControlMode(aControl);
          anActor->GetScalarBarActor()->SetTitle(aTitle.latin1());
          }
          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;
     }
 
       break;
     }
 
@@ -2822,8 +2828,8 @@ void SMESHGUI::createPreferences()
   QStringList modes;
   modes.append( "Wireframe" );
   modes.append( "Shading" );
   QStringList modes;
   modes.append( "Wireframe" );
   modes.append( "Shading" );
-  modes.append( "Shrink" );
   modes.append( "Nodes" );
   modes.append( "Nodes" );
+  modes.append( "Shrink" );
   QValueList<QVariant> indices; 
   indices.append( 0 ); 
   indices.append( 1 );
   QValueList<QVariant> indices; 
   indices.append( 0 ); 
   indices.append( 1 );