From 6ac64257e4ecae566321e3642bbc8b14c3810d65 Mon Sep 17 00:00:00 2001 From: Michael Bedward Date: Mon, 25 Oct 1999 13:17:36 +0000 Subject: [PATCH] Fix for incomplete initial display sometimes with wxMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/grid.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/generic/grid.cpp b/src/generic/grid.cpp index 18c1acac6c..01af2f0d9e 100644 --- a/src/generic/grid.cpp +++ b/src/generic/grid.cpp @@ -816,9 +816,10 @@ void wxGrid::Init() m_cellEditCtrlEnabled = TRUE; m_editCtrlType = wxGRID_TEXTCTRL; - // Not really needed here, it gets called by OnSize() + // This is here in case OnSize does not get called when the grid is + // displayed // - // CalcDimensions(); + CalcDimensions(); } -- 2.45.2