From 5cf83b1ac09099a783104e1bb34d9bac9034c21c Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Sat, 25 Mar 2006 12:04:37 +0000 Subject: [PATCH] Fixed crash in Life demo on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- demos/life/game.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/demos/life/game.h b/demos/life/game.h index 7c7b6aff37..0a4860f100 100644 --- a/demos/life/game.h +++ b/demos/life/game.h @@ -54,7 +54,12 @@ public: m_name = name; m_description = description; m_rules = wxEmptyString; + // TODO: add the positions later, since the formatting command + // causes a crash due to conversion objects not being available + // during initialisation. +#ifndef __WXMAC__ m_shape.Add( wxString::Format(_T("%i %i"), -width/2, -height/2) ); +#endif for(int j = 0; j < height; j++) { wxString tmp; -- 2.47.2