From cebc3503d25510af028a550f6ca868902e350e74 Mon Sep 17 00:00:00 2001 From: Artur Wieczorek Date: Fri, 12 Dec 2014 22:40:00 +0000 Subject: [PATCH] Create wxPropertyGridManager with default size in the propgrid sample Since r78150 wxPropertyGridManager can be created with default size with no issues. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/propgrid/propgrid.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/samples/propgrid/propgrid.cpp b/samples/propgrid/propgrid.cpp index 7a7d651d22..672b3418b8 100644 --- a/samples/propgrid/propgrid.cpp +++ b/samples/propgrid/propgrid.cpp @@ -1914,10 +1914,7 @@ void FormMain::CreateGrid( int style, int extraStyle ) // event handling will obviously be broken. PGID, /*wxID_ANY*/ wxDefaultPosition, - wxSize(100, 100), // FIXME: wxDefaultSize gives assertion in propgrid. - // But calling SetInitialSize in manager changes the code - // order to the grid gets created immediately, before SetExtraStyle - // is called. + wxDefaultSize, style ); m_propGrid = pgman->GetGrid();