From: azv Date: Tue, 28 Nov 2017 12:15:05 +0000 (+0300) Subject: Fix compilation error on CentOS X-Git-Tag: V_2.10.0RC~123^2~5^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ccdad0a7c9460b2b2bc686f1cd6db9f7772c9b0;p=modules%2Fshaper.git Fix compilation error on CentOS --- diff --git a/src/Model/Model_Objects.cpp b/src/Model/Model_Objects.cpp index fc9e9ff2a..7324960c6 100644 --- a/src/Model/Model_Objects.cpp +++ b/src/Model/Model_Objects.cpp @@ -805,7 +805,7 @@ void Model_Objects::synchronizeFeatures( // create a feature ObjectPtr aFeature = isFolder ? ObjectPtr(new ModelAPI_Folder) - : aSession->createFeature(aFeatureID, anOwner); + : ObjectPtr(aSession->createFeature(aFeatureID, anOwner)); if (!aFeature.get()) { // somethig is wrong, most probably, the opened document has invalid structure Events_InfoMessage("Model_Objects", "Invalid type of object in the document").send();