X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_Module.cpp;h=bc383d3019f745a6025c688d96652a46685c3315;hb=8396394eba586fc212fe4cb3e1e838a54ebf4ffe;hp=8acf0c38cb12232c1f6dfee1ff79ceb63e266e74;hpb=f3c113af79cf08e90316b2d27303a0a12d93fddc;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 8acf0c38c..bc383d301 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -153,11 +154,11 @@ void PartSet_Module::onMouseReleased(QPoint thePoint) ModuleBase_Operation* anOperation = myWorkshop->operationMgr()->currentOperation(); PartSet_OperationSketchBase* aPreviewOp = dynamic_cast(anOperation); if (aPreviewOp) { - XGUI_Viewer* aViewer = myWorkshop->mainWindow()->viewer(); - if (aViewer) { + XGUI_SelectionMgr* aSelector = myWorkshop->selector(); + if (aSelector) { NCollection_List aList; - aViewer->getSelectedShapes(aList); - XGUI_ViewWindow* aWindow = aViewer->activeViewWindow(); + aSelector->selectedShapes(aList); + XGUI_ViewWindow* aWindow = myWorkshop->mainWindow()->viewer()->activeViewWindow(); if (aWindow) { Handle(V3d_View) aView3d = aWindow->viewPort()->getView(); if ( !aView3d.IsNull() ) {