[commit] r2697 - trunk/GME/GMEActiveBrowser

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Oct 12 14:19:49 CDT 2017


Author: ksmyth
Date: Thu Oct 12 14:19:49 2017
New Revision: 2697

Log:
Fix bug with deleting multiple objects in tree

Modified:
   trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp

Modified: trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp
==============================================================================
--- trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp	Thu Sep 28 11:51:50 2017	(r2696)
+++ trunk/GME/GMEActiveBrowser/AggregateTreeCtrl.cpp	Thu Oct 12 14:19:49 2017	(r2697)
@@ -498,6 +498,14 @@
 		if (ccpItem1 && ccpItem2)
 		{
 			// Query the RelativeID
+			long status1 = OBJECT_DELETED;
+			long status2 = OBJECT_DELETED;
+			ccpItem1->get_Status(&status1);
+			ccpItem2->get_Status(&status2);
+			if (status1 != OBJECT_EXISTS || status2 != OBJECT_EXISTS)
+			{
+				return status1 - status2;
+			}
 			long lRelID1, lRelID2;
 			COMTHROW(ccpItem1->get_RelID(&lRelID1));
 			COMTHROW(ccpItem2->get_RelID(&lRelID2));


More information about the gme-commit mailing list