From: mpv Date: Fri, 8 May 2015 12:42:19 +0000 (+0300) Subject: Make compilable on Linux X-Git-Tag: V_1.2.0~167 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2df56fe9d65461225eb0e622944862010dee54b0;p=modules%2Fshaper.git Make compilable on Linux --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 7ddc7dcfd..06786c9b6 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -969,7 +969,8 @@ std::shared_ptr 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(); // null feature means the higher than first }