From 0091cacd88d53bd158db06fb2fbfe0a235e6a1c6 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Mon, 9 Jun 2014 10:05:46 +0400 Subject: [PATCH] fix auto fit col/row sizes --- src/dlangui/widgets/grid.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/widgets/grid.d b/src/dlangui/widgets/grid.d index 05d50b6f..6d4716b8 100644 --- a/src/dlangui/widgets/grid.d +++ b/src/dlangui/widgets/grid.d @@ -962,7 +962,7 @@ class StringGridWidget : GridWidgetBase { protected override Point measureCell(int x, int y) { FontRef fnt = font; - dstring txt = cellText(col, row); + dstring txt = cellText(x, y); Point sz = fnt.textSize(txt); if (sz.y < fnt.height) sz.y = fnt.height;