Salome HOME
Debug of the sketch faces selection in external document
[modules/shaper.git] / src / Model / Model_Application.cpp
index ed730d1c8578812e38c508d1cd45f5bc3522bca5..a5688b66e5e7f1150ec8bec91434ae16c32cc82c 100644 (file)
@@ -136,9 +136,10 @@ void Model_Application::setLoadByDemand(std::string theID, const int theDocID)
 }
 
 //=======================================================================
-bool Model_Application::isLoadByDemand(std::string theID)
+bool Model_Application::isLoadByDemand(std::string theID, const int theDocIndex)
 {
-  return myLoadedByDemand.find(theID) != myLoadedByDemand.end();
+  return myLoadedByDemand.find(theID) != myLoadedByDemand.end() &&
+    myLoadedByDemand[theID] == theDocIndex;
 }
 
 //=======================================================================