[commit] r1917 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri May 4 10:12:11 CDT 2012


Author: ksmyth
Date: Fri May  4 10:12:11 2012
New Revision: 1917

Log:
Fix crash when deleting a model with child/derived models that are open in the model editor

Modified:
   trunk/GME/Gme/ChildFrm.cpp

Modified: trunk/GME/Gme/ChildFrm.cpp
==============================================================================
--- trunk/GME/Gme/ChildFrm.cpp	Fri May  4 10:12:00 2012	(r1916)
+++ trunk/GME/Gme/ChildFrm.cpp	Fri May  4 10:12:11 2012	(r1917)
@@ -200,6 +200,9 @@
 	if (pActivateWnd == this)
 	{
 		CGMEView* view = ((CGMEView*)GetActiveView());
+		if (!view->alive)
+			return;
+		
 		view->DoPannWinRefresh();
 		if (view->guiMeta) {
 			theApp.UpdateCompList4CurrentKind( view->guiMeta->name);


More information about the gme-commit mailing list