From cdbe48cc83851b46e297c27ee3e22ef3e1b06392 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 14 Jun 2016 20:58:44 -0400 Subject: [PATCH] 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. --- darwin/grid.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/darwin/grid.m b/darwin/grid.m index 200c2a1b..aaf7a142 100644 --- a/darwin/grid.m +++ b/darwin/grid.m @@ -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;