From d7341d62e08a5185a7184de4f4c74c6c4a76ca15 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 6 Apr 2016 16:01:26 +0300 Subject: [PATCH] Fix compilation errors --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 4 +++- src/XGUI/XGUI_SelectionMgr.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 94e2d3c92..2524a9ba7 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -426,7 +426,9 @@ void PartSet_WidgetSketchLabel::activateCustom() bool aBodyIsVisualized = myPreviewPlanes->hasVisualizedBodies(myWorkshop); // Clear previous selection mode It is necessary for correct activation of preview planes - aDisp->activateObjects(QIntList(), aDisplayed, false); + XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myWorkshop); + XGUI_Displayer* aDisp = aWorkshop->displayer(); + aDisp->activateObjects(QIntList(), aDisp->displayedObjects(), false); if (!aBodyIsVisualized) { // We have to select a plane before any operation diff --git a/src/XGUI/XGUI_SelectionMgr.cpp b/src/XGUI/XGUI_SelectionMgr.cpp index 5570632c5..11e2e76fc 100644 --- a/src/XGUI/XGUI_SelectionMgr.cpp +++ b/src/XGUI/XGUI_SelectionMgr.cpp @@ -107,7 +107,7 @@ void XGUI_SelectionMgr::onObjectBrowserSelection() const std::list> aResList = aFeature->results(); std::list::const_iterator aIt; for (aIt = aResList.cbegin(); aIt != aResList.cend(); ++aIt) { - aSelectedPrs.append(ModuleBase_ViewerPrs((*aIt), TopoDS_Shape(), NULL)); + aSelectedPrs.append(ModuleBase_ViewerPrs((*aIt), GeomShapePtr(), NULL)); } } } -- 2.39.2