]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Make compilable on Linux
authormpv <mpv@opencascade.com>
Fri, 8 May 2015 12:42:19 +0000 (15:42 +0300)
committermpv <mpv@opencascade.com>
Fri, 8 May 2015 12:42:19 +0000 (15:42 +0300)
src/Model/Model_Document.cpp

index 7ddc7dcfde3db46ab5182075648418b7214418d3..06786c9b64450db17d01d51f60f80bfc18053719 100644 (file)
@@ -969,7 +969,8 @@ std::shared_ptr<ModelAPI_Feature> Model_Document::currentFeature()
   static TDF_Label aRefLab = generalLabel().FindChild(TAG_CURRENT_FEATURE);
   Handle(TDF_Reference) aRef;
   if (aRefLab.FindAttribute(TDF_Reference::GetID(), aRef)) {
-    return feature(aRef->Get());
+    TDF_Label aLab = aRef->Get();
+    return feature(aLab);
   }
   return std::shared_ptr<ModelAPI_Feature>(); // null feature means the higher than first
 }