Additional fix for the "0022460: [CEA 1042] Copy Mesh: impossible mesh selection in the object browser if selection in 3D view is disabled" issue.

This commit is contained in:
rnv 2014-01-24 11:16:50 +00:00
parent 6a9d0d6ae6
commit b737ae98e6
11 changed files with 12 additions and 12 deletions

View File

@ -947,7 +947,7 @@ void SMESHGUI_AddQuadraticElementDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
if (aList.Extent() != 1)
{

View File

@ -823,7 +823,7 @@ void SMESHGUI_ExtrusionDlg::SelectionIntoArgument()
}
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList, SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = SMESH::GetNameOfSelectedIObjects(mySelectionMgr, aString);
if (nbSel != 1)
return;

View File

@ -364,7 +364,7 @@ void SMESHGUI_RemoveNodesDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel == 1) {

View File

@ -712,8 +712,8 @@ void SMESHGUI_RevolutionDlg::SelectionIntoArgument()
return;
// get selected mesh
const SALOME_ListIO& aList = mySelector->StoredIObjects();
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel != 1)
return;

View File

@ -664,7 +664,7 @@ void SMESHGUI_RotationDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel < 1)

View File

@ -704,7 +704,7 @@ void SMESHGUI_ScaleDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel < 1)

View File

@ -726,7 +726,7 @@ void SMESHGUI_SewingDlg::SelectionIntoArgument (bool isSelectionChanged)
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel != 1)

View File

@ -420,7 +420,7 @@ void SMESHGUI_ShapeByMeshOp::onSelectionDone()
try {
SALOME_ListIO aList;
selectionMgr()->selectedObjects(aList, SVTK_Viewer::Type());
selectionMgr()->selectedObjects(aList);
if (!myIsMultipleAllowed && aList.Extent() != 1)
return;

View File

@ -565,7 +565,7 @@ void SMESHGUI_SmoothingDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel != 1)
return;

View File

@ -722,7 +722,7 @@ void SMESHGUI_SymmetryDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel < 1)

View File

@ -728,7 +728,7 @@ void SMESHGUI_TranslationDlg::SelectionIntoArgument()
// get selected mesh
SALOME_ListIO aList;
mySelectionMgr->selectedObjects(aList,SVTK_Viewer::Type());
mySelectionMgr->selectedObjects(aList);
int nbSel = aList.Extent();
if (nbSel < 1)