X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModel%2FModel_Application.cpp;h=a5688b66e5e7f1150ec8bec91434ae16c32cc82c;hb=94dff38fb908803e58a60e48a97bec3ae223bc1a;hp=ed730d1c8578812e38c508d1cd45f5bc3522bca5;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/Model/Model_Application.cpp b/src/Model/Model_Application.cpp index ed730d1c8..a5688b66e 100644 --- a/src/Model/Model_Application.cpp +++ b/src/Model/Model_Application.cpp @@ -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; } //=======================================================================