[commit] r1098 - trunk/Paradigms/SF/SFInterpreter
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Wed Nov 24 13:37:20 CST 2010
Author: ksmyth
Date: Wed Nov 24 13:37:20 2010
New Revision: 1098
Log:
Fix GME-315: dont crash if invoked from right-click on tree browser
Modified:
trunk/Paradigms/SF/SFInterpreter/BONComponent.cpp
Modified: trunk/Paradigms/SF/SFInterpreter/BONComponent.cpp
==============================================================================
--- trunk/Paradigms/SF/SFInterpreter/BONComponent.cpp Wed Nov 24 13:05:09 2010 (r1097)
+++ trunk/Paradigms/SF/SFInterpreter/BONComponent.cpp Wed Nov 24 13:37:20 2010 (r1098)
@@ -73,11 +73,10 @@
{
// ASSERT(!(selected.IsEmpty()));
// CBuilderObject *sfBuilder = selected.GetHead();
- if (!focus) {
+ if (!focus && !selected.IsEmpty()) {
focus = selected.GetHead();
}
- ASSERT(focus);
- if(!focus->IsKindOf(RUNTIME_CLASS(CCompoundBuilder))) {
+ if(!focus || !focus->IsKindOf(RUNTIME_CLASS(CCompoundBuilder))) {
AfxMessageBox("Interpretation must start from a Compound model!");
return;
}
More information about the gme-commit
mailing list