From: dmv Date: Fri, 17 Oct 2008 11:26:28 +0000 (+0000) Subject: 4x, 5x : Selection with rectangle is impossible for mesh elements if Submesh or Group... X-Git-Tag: RELIQUAT_4x_25102008~6 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6d02e185570d3b184925c8745208546d55583202;p=modules%2Fsmesh.git 4x, 5x : Selection with rectangle is impossible for mesh elements if Submesh or Group is showed. --- diff --git a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx index 0e39378b5..fa9b2b34d 100755 --- a/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MultiEditDlg.cxx @@ -543,7 +543,7 @@ void SMESHGUI_MultiEditDlg::onSelectionDone() } else { aNameEdit->clear(); } - } else if (nbSel == 1) { + } else if (nbSel > 0) { QString aListStr = ""; Handle(SALOME_InteractiveObject) anIO = aList.First(); int aNbItems = SMESH::GetNameOfSelectedElements(mySelector,anIO,aListStr); @@ -559,7 +559,7 @@ void SMESHGUI_MultiEditDlg::onSelectionDone() myMesh = SMESH::GetMeshByIO(anIO); } - if (nbSel == 1) { + if (nbSel > 0) { myActor = SMESH::FindActorByEntry(aList.First()->getEntry()); if (!myActor) myActor = SMESH::FindActorByObject(myMesh); @@ -687,7 +687,7 @@ void SMESHGUI_MultiEditDlg::onAddBtn() TColStd_IndexedMapOfInteger toBeAdded; if (!mySubmeshChk->isChecked() && !myGroupChk->isChecked()) { - if (nbSelected == 1) + if (nbSelected > 0) mySelector->GetIndex(aList.First(),toBeAdded); } else if (mySubmeshChk->isChecked()) { SALOME_ListIteratorOfListIO anIter(aList); @@ -764,7 +764,7 @@ void SMESHGUI_MultiEditDlg::updateButtons() if (isToAll || myMesh->_is_nil() || - aList.Extent() != 1 || + aList.Extent() < 1 || (SMESH::IObjectToInterface(aList.First())->_is_nil() && SMESH::IObjectToInterface(aList.First())->_is_nil() && SMESH::IObjectToInterface(aList.First())->_is_nil()))