From f8a10a3d2ba6884cbde1f38cb5dac53e2310ce97 Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Mon, 14 Mar 2005 17:10:32 +0000 Subject: [PATCH] Don't call Layout git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- demos/life/dialogs.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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);