Salome HOME
Added object, attribute and data model organization in the document.
[modules/shaper.git] / src / Model / Model_Application.cxx
index ac1eeb896c8cb9ce1eb51564de0902ad3cc987a2..aab352e75c7ecd02a8052759619e1afd879e7462 100644 (file)
@@ -28,7 +28,7 @@ std::shared_ptr<Model_Document> Model_Application::getDocument(std::string theDo
   if (myDocs.find(theDocID) != myDocs.end())
     return myDocs[theDocID];
 
-  std::shared_ptr<Model_Document> aNew(new Model_Document);
+  std::shared_ptr<Model_Document> aNew(new Model_Document(theDocID));
   myDocs[theDocID] = aNew;
   return aNew;
 }