From: Julian Smart Date: Mon, 14 Mar 2005 17:10:32 +0000 (+0000) Subject: Don't call Layout X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f8a10a3d2ba6884cbde1f38cb5dac53e2310ce97?hp=364a2be07a5acbeabb1f3d1be3d51999feb2b42c Don't call Layout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/demos/life/dialogs.cpp b/demos/life/dialogs.cpp index f4afa3c769..c55fc7989d 100644 --- a/demos/life/dialogs.cpp +++ b/demos/life/dialogs.cpp @@ -124,9 +124,7 @@ LifeSamplesDialog::LifeSamplesDialog(wxWindow *parent) // activate SetSizer(sizer3); -#if defined(__POCKETPC__) || defined(__SMARTPHONE__) - Layout(); -#else +#if !defined(__POCKETPC__) && !defined(__SMARTPHONE__) sizer3->SetSizeHints(this); sizer3->Fit(this); Centre(wxBOTH | wxCENTRE_ON_SCREEN); @@ -195,9 +193,7 @@ XLife is (c) 1989 by Jon Bennett et al.")), // activate SetSizer(sizer); -#ifdef __WXWINCE__ - Layout(); -#else +#ifndef __WXWINCE__ sizer->SetSizeHints(this); sizer->Fit(this); Centre(wxBOTH | wxCENTRE_ON_SCREEN);