Fixed crash in Life demo on Mac

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2006-03-25 12:04:37 +00:00
parent fbb526cced
commit 5cf83b1ac0

View File

@ -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;