Salome HOME
Update to use the latest version of TInspector (OCCT 7.5.3)
[modules/shaper.git] / src / Model / Model_Document.cpp
index 94903c205b044a660676fc5b2cc9ae43219adca8..505b77f3647d91ff9dab7230d1fbf16bd047766f 100644 (file)
@@ -75,7 +75,6 @@
 #include <OSD_Protection.hxx>
 
 #ifdef TINSPECTOR
-#include <CDF_Session.hxx>
 #include <CDF_Directory.hxx>
 #endif
 
@@ -117,7 +116,7 @@ Model_Document::Model_Document(const int theID, const std::string theKind)
       myIsSetCurrentFeature(false)
 {
 #ifdef TINSPECTOR
-  CDF_Session::CurrentSession()->Directory()->Add(myDoc);
+  ModelAPI_Session::get()->application()->NewDocument("BinOcaf", myDoc);
 #endif
   myObjs = new Model_Objects(myDoc->Main());
   myDoc->SetUndoLimit(UNDO_LIMIT);