]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed crash in Life demo on Mac
authorJulian Smart <julian@anthemion.co.uk>
Sat, 25 Mar 2006 12:04:37 +0000 (12:04 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 25 Mar 2006 12:04:37 +0000 (12:04 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

demos/life/game.h

index 7c7b6aff3782fc68cece9dc561c7966e87cfef9c..0a4860f10035452c28242b94249d7a9bcf5974ba 100644 (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;