]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation errors
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 6 Apr 2016 13:01:26 +0000 (16:01 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 6 Apr 2016 13:01:26 +0000 (16:01 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp
src/XGUI/XGUI_SelectionMgr.cpp

index 94e2d3c9224b58912c0e40d55e88ed272edd4229..2524a9ba7f1f2bb0aa9d64457abfaaf4adde078a 100644 (file)
@@ -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
index 5570632c5d1dbee3c76cad47e55a80ad73b462b8..11e2e76fc4190ce292a8b5ca4fe37a1e49407681 100644 (file)
@@ -107,7 +107,7 @@ void XGUI_SelectionMgr::onObjectBrowserSelection()
         const std::list<std::shared_ptr<ModelAPI_Result>> aResList = aFeature->results();
         std::list<ResultPtr>::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));
         }
       }
     }