[commit] r1516 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Fri Sep 9 11:02:30 CDT 2011


Author: ksmyth
Date: Fri Sep  9 11:02:30 2011
New Revision: 1516

Log:
Fix crash on clicking a link to a deleted object

Modified:
   trunk/GME/Gme/GMEDoc.cpp

Modified: trunk/GME/Gme/GMEDoc.cpp
==============================================================================
--- trunk/GME/Gme/GMEDoc.cpp	Fri Sep  9 11:02:13 2011	(r1515)
+++ trunk/GME/Gme/GMEDoc.cpp	Fri Sep  9 11:02:30 2011	(r1516)
@@ -701,6 +701,9 @@
 		COMTHROW(theApp.mgaProject->GetObjectByID(bstrID, &object));
 		COMTHROW(object.QueryInterface(&unk));
 
+		// CheckRead() to see if this object was deleted
+		long relid;
+		COMTHROW(object->get_RelID(&relid));
 		if (!inTrans) {
 			theApp.mgaProject->CommitTransaction();
 		}


More information about the gme-commit mailing list