]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix compilation error on CentOS
authorazv <azv@opencascade.com>
Tue, 28 Nov 2017 12:15:05 +0000 (15:15 +0300)
committerazv <azv@opencascade.com>
Tue, 28 Nov 2017 12:15:05 +0000 (15:15 +0300)
src/Model/Model_Objects.cpp

index fc9e9ff2a40289709253ed30d3a34c11915812d0..7324960c650a448bab7a7845a518116d4de3b45e 100644 (file)
@@ -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();