From: Julian Smart Date: Sat, 25 Mar 2006 12:04:37 +0000 (+0000) Subject: Fixed crash in Life demo on Mac X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5cf83b1ac09099a783104e1bb34d9bac9034c21c Fixed crash in Life demo on Mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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;