Salome HOME
Issue #367: Make moved point equal to selected
[modules/shaper.git] / src / Model / Model_ResultPart.cpp
index 1ec015c90c4d117a2c83468d615fbb35d383f6ef..0392787f3c7a2b7a44558b0b851a81a3914a5eb6 100644 (file)
@@ -42,8 +42,9 @@ void Model_ResultPart::activate()
       aDocRef->setValue(aDoc);
     }
   }
-  if (aDocRef->value())
+  if (aDocRef->value().get()) {
     ModelAPI_Session::get()->setActiveDocument(aDocRef->value());
+  }
 }
 
 bool Model_ResultPart::isActivated()