Plugged a potential memory corruption in darwin/grid.m. Now we have to do the same on Windows: ensure that hidden cells are taken into account when computing xmin/xmax/ymin/ymax and abort if there's nothing there.

This commit is contained in:
Pietro Gagliardi 2016-06-14 20:58:44 -04:00
parent 0a4a8ae4f3
commit cdbe48cc83
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ struct uiGrid {
if (ymax < (gc.top + gc.yspan))
ymax = gc.top + gc.yspan;
}
if (first == YES) // the entire grid is hidden; do nothing
return;
xcount = xmax - xmin;
ycount = ymax - ymin;