[GME-commit] GMESRC/GME/Gme GUIObject.cpp,1.56,1.57

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Nov 20 19:48:17 CST 2006


Update of /project/gme-repository/GMESRC/GME/Gme
In directory escher:/tmp/cvs-serv30807

Modified Files:
	GUIObject.cpp 
Log Message:
Previously crashed when invalid integer pair was introduced in position holding registry node.
Now it will nudge back, close to top-left position, where initially objects are laid down.


CVS User: Zoltan Molnar, ISIS (zolmol)

Index: GUIObject.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/GME/Gme/GUIObject.cpp,v
retrieving revision 1.56
retrieving revision 1.57
diff -C2 -d -r1.56 -r1.57
*** GUIObject.cpp	17 Oct 2006 23:14:57 -0000	1.56
--- GUIObject.cpp	20 Nov 2006 19:48:15 -0000	1.57
***************
*** 1327,1330 ****
--- 1327,1334 ----
  				guiAspects[aspIndex]->SetLocation(loc);
  			}
+ 			else { // unparsable integer pair found, use (-1,-1) like in CMgaPart::GetGmeAttrs
+ 				::SetLocation(loc,CPoint(-1,-1));
+ 				guiAspects[aspIndex]->SetLocation(loc);
+ 			}
  		}
  		MGACOLL_ITERATE_END;



More information about the GME-commit mailing list