OSDN Git Service
(root)
/
molby
/
Molby.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
MSW: closing console->molecule was causing crash. Hopefully fixed.
[molby/Molby.git]
/
MolLib
/
MainView.c
diff --git
a/MolLib/MainView.c
b/MolLib/MainView.c
index
7ced70e
..
55deda8
100755
(executable)
--- a/
MolLib/MainView.c
+++ b/
MolLib/MainView.c
@@
-220,7
+220,8
@@
MainView_setViewObject(MainView *mview, void *ref)
mview->ref = ref; /* No retain */
IntGroupClear(mview->tableCache);
IntGroupClear(mview->tableSelection);
- MoleculeCallback_notifyModification(mview->mol, 0);
+ if (mview->ref != NULL)
+ MoleculeCallback_notifyModification(mview->mol, 0);
}
}