Salome HOME
Fix for the problem: click "Apply" button unselects mesh.
authormzn <mzn@opencascade.com>
Thu, 1 Sep 2005 09:20:12 +0000 (09:20 +0000)
committermzn <mzn@opencascade.com>
Thu, 1 Sep 2005 09:20:12 +0000 (09:20 +0000)
src/SMESHGUI/SMESHGUI_ExtrusionDlg.cxx
src/SMESHGUI/SMESHGUI_RevolutionDlg.cxx
src/SMESHGUI/SMESHGUI_RotationDlg.cxx
src/SMESHGUI/SMESHGUI_SymmetryDlg.cxx
src/SMESHGUI/SMESHGUI_TranslationDlg.cxx

index 0caa16cc36d7c4113ff4a5f4cdf5fc4f83cae30c..8ae65deec8eb152b0fef63a501fbce0091ad94c1 100644 (file)
@@ -384,10 +384,10 @@ bool SMESHGUI_ExtrusionDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
     ConstructorsClicked(GetConstructorId());
+    SelectionIntoArgument();
   }
   return true;
 }
index 2f15f1882ba0d8de15098351db4472e3709a93e0..fb35d63efa0e360e739602c2b5d8fe67451570ee 100644 (file)
@@ -469,10 +469,10 @@ void SMESHGUI_RevolutionDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
     ConstructorsClicked(GetConstructorId());
+    SelectionIntoArgument();
   }
 }
 
index 8b074aba329114f1156a27f0ebd2793981cc3996..bc33e671858d48a0649dcd8dc6ed9c7def861318 100644 (file)
@@ -424,9 +424,9 @@ void SMESHGUI_RotationDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
+    SelectionIntoArgument();
   }
 }
 
index fe52986e52107c5893e63739462483c7d49b1b78..5eba33ab0acd61a91551d74ec3799b32b4499f58 100644 (file)
@@ -485,10 +485,10 @@ void SMESHGUI_SymmetryDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
     ConstructorsClicked(GetConstructorId());
+    SelectionIntoArgument();
   }
 }
 
index 6ea4bbf29ab2ab2730ae5ac089f59966caed990c..1df8f02eba9b88eabb6d127dd1b4b5215b99ac63 100644 (file)
@@ -447,10 +447,10 @@ void SMESHGUI_TranslationDlg::ClickOnApply()
     } catch (...) {
     }
 
-    mySelectionMgr->clearSelected();
     SMESH::UpdateView();
     Init(false);
     ConstructorsClicked(GetConstructorId());
+    SelectionIntoArgument();
   }
 }
 
@@ -624,7 +624,7 @@ void SMESHGUI_TranslationDlg::SelectionIntoArgument()
         aNbUnits = anElementsIds->length();
       }
     } else {
-      aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, myActor->getIO(), aString);
+      aNbUnits = SMESH::GetNameOfSelectedElements(mySelector, IO, aString);
       myElementsId = aString;
     }