[commit] r1547 - trunk/GME/Gme
GMESRC Repository Notifications
gme-commit at list.isis.vanderbilt.edu
Fri Sep 16 12:49:12 CDT 2011
Author: ksmyth
Date: Fri Sep 16 12:49:12 2011
New Revision: 1547
Log:
Hack to prevent labels from overlapping
Modified:
trunk/GME/Gme/ModelGrid.cpp
Modified: trunk/GME/Gme/ModelGrid.cpp
==============================================================================
--- trunk/GME/Gme/ModelGrid.cpp Fri Sep 16 12:49:02 2011 (r1546)
+++ trunk/GME/Gme/ModelGrid.cpp Fri Sep 16 12:49:12 2011 (r1547)
@@ -91,6 +91,8 @@
int starty = pt.y - halfSize.cy;
int endx = pt.x + halfSize.cx;
int endy = pt.y + halfSize.cy;
+ // Hack to prevent labels from overlapping
+ starty -= 2;
if(startx < 0 || starty < 0 || endx >= GME_MAX_GRID_DIM || endy >= GME_MAX_GRID_DIM)
return false;
for(int i = starty; i < endy; i++)
More information about the gme-commit
mailing list