Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug of the sketch faces selection in external document
[modules/shaper.git]
/
src
/
Model
/
Model_Application.cpp
diff --git
a/src/Model/Model_Application.cpp
b/src/Model/Model_Application.cpp
index ed730d1c8578812e38c508d1cd45f5bc3522bca5..a5688b66e5e7f1150ec8bec91434ae16c32cc82c 100644
(file)
--- 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;
}
//=======================================================================
}
//=======================================================================