[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.124,1.125

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Thu Mar 4 08:10:49 CST 2004


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv29137

Modified Files:
	GMEView.cpp 
Log Message:
fixed "multiple obj deletion with types/instances in the selection" bug

CVS User: akos

Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.124
retrieving revision 1.125
diff -C2 -d -r1.124 -r1.125
*** GMEView.cpp	4 Mar 2004 04:50:25 -0000	1.124
--- GMEView.cpp	4 Mar 2004 14:10:43 -0000	1.125
***************
*** 2190,2195 ****
  		while(pos) {
  			CGuiObject *obj = objectList.GetNext(pos);
! 			COMTHROW(obj->mgaFco->DestroyObject());
! 			COMTHROW(obj->mgaFco->Close());
  		}
  		CommitTransaction();
--- 2190,2200 ----
  		while(pos) {
  			CGuiObject *obj = objectList.GetNext(pos);
! 			long oStatus;
! 			COMTHROW(obj->mgaFco->get_Status(&oStatus));
! 			// making sure that the fco was not deleted previously in the loop due to a dependency 
! 			if(oStatus == OBJECT_EXISTS) {
! 				COMTHROW(obj->mgaFco->DestroyObject());
! 				COMTHROW(obj->mgaFco->Close());
! 			}
  		}
  		CommitTransaction();



More information about the GME-commit mailing list