]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Runtime error in libPartSet on linux resolved.
authorSergey BELASH <belash.sergey@opencascade.com>
Wed, 5 Nov 2014 15:30:40 +0000 (18:30 +0300)
committerSergey BELASH <belash.sergey@opencascade.com>
Wed, 5 Nov 2014 15:30:40 +0000 (18:30 +0300)
src/PartSet/PartSet_OperationSketch.cpp

index 10f6a345d351f01055ee456844d9b3c3bd7f1674..908ee3c519566f3e9955fe786c04ad861e922354 100644 (file)
@@ -105,9 +105,9 @@ void PartSet_OperationSketch::selectionChanged(ModuleBase_ISelection* theSelecti
       // If selection is not a sketcher presentation then it has to be stored as 
       // External shape
       if (feature() != aPrs.object()) {
-        boost::shared_ptr<SketchPlugin_Sketch> aSketch = 
-          boost::dynamic_pointer_cast<SketchPlugin_Sketch>(feature());
-        DataPtr aData = aSketch->data();
+        //boost::shared_ptr<SketchPlugin_Sketch> aSketch = 
+        //  boost::dynamic_pointer_cast<SketchPlugin_Sketch>(feature());
+        DataPtr aData = feature()->data();
         AttributeSelectionPtr aSelAttr = 
           boost::dynamic_pointer_cast<ModelAPI_AttributeSelection>
           (aData->attribute(SketchPlugin_Feature::EXTERNAL_ID()));