X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_ModuleConnector.cpp;h=fdc407f7be5fa95b5a577b800f2748d43d346f16;hb=574ec2fbe5ab1d0636a0d17430505a9fb07f1b71;hp=ab9991d503365ecb453e9c9b020e00e6e68d74bd;hpb=ed3006032ada5642cbd0b1152c01170c815526a6;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_ModuleConnector.cpp b/src/XGUI/XGUI_ModuleConnector.cpp index ab9991d50..fdc407f7b 100644 --- a/src/XGUI/XGUI_ModuleConnector.cpp +++ b/src/XGUI/XGUI_ModuleConnector.cpp @@ -68,7 +68,10 @@ void XGUI_ModuleConnector::activateSubShapesSelection(const QIntList& theTypes) // Convert shape types to selection types QIntList aModes; foreach(int aType, theTypes) { - aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)aType)); + if (aType > TopAbs_SHAPE) + aModes.append(aType); + else + aModes.append(AIS_Shape::SelectionMode((TopAbs_ShapeEnum)aType)); } aDisp->activateObjects(aModes); //TODO: We have to open Local context because at neutral point filters don't work (bug 25340)