From 2df56fe9d65461225eb0e622944862010dee54b0 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 8 May 2015 15:42:19 +0300 Subject: [PATCH] Make compilable on Linux --- src/Model/Model_Document.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } -- 2.39.2