]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Preselection using in operations: using of external objects correction.
authornds <natalia.donis@opencascade.com>
Thu, 18 Jun 2015 08:00:30 +0000 (11:00 +0300)
committernds <natalia.donis@opencascade.com>
Thu, 18 Jun 2015 08:00:30 +0000 (11:00 +0300)
src/ModuleBase/ModuleBase_WidgetMultiSelector.cpp

index a74c2758c8bc2804efc520d745a300041a0cca63..d4f209b15db5edd1993212b06e5fb206a42566d4 100644 (file)
@@ -203,7 +203,7 @@ void ModuleBase_WidgetMultiSelector::setObject(ObjectPtr theSelectedObject,
   AttributeSelectionListPtr aSelectionListAttr = 
     std::dynamic_pointer_cast<ModelAPI_AttributeSelectionList>(aData->attribute(attributeID()));
 
-  ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(aResult);
+  ResultPtr aResult = std::dynamic_pointer_cast<ModelAPI_Result>(theSelectedObject);
   aSelectionListAttr->append(aResult, theShape);
 }