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
Issue #1112 tab key doesn't work on the last field of left panels
[modules/shaper.git]
/
src
/
Model
/
Model_Document.cpp
diff --git
a/src/Model/Model_Document.cpp
b/src/Model/Model_Document.cpp
index c38a70f539def2dbfc863e351739a696681ce0b8..ec071b40300a35ca2d586f902764a204002897ed 100755
(executable)
--- a/
src/Model/Model_Document.cpp
+++ b/
src/Model/Model_Document.cpp
@@
-870,6
+870,8
@@
const int Model_Document::index(std::shared_ptr<ModelAPI_Object> theObject)
int Model_Document::size(const std::string& theGroupID)
{
+ if (myObjs == 0) // may be on close
+ return 0;
return myObjs->size(theGroupID);
}