]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/proplist/proplist.cpp
compilation fix for recent commit
[wxWidgets.git] / samples / proplist / proplist.cpp
index ab4dffc53baf62a5450bd76f69cd749137695f66..af8c22b74e377bfe491f45a195ab99fa08f90834 100644 (file)
@@ -237,8 +237,18 @@ void MyApp::PropertyFormTest(bool useDialog)
     propFrame->Initialize();
     m_childWindow = propFrame;
   }
     propFrame->Initialize();
     m_childWindow = propFrame;
   }
-  
-  wxWindow *panel = propDialog ? propDialog : propFrame->GetPropertyPanel();
+
+  // BCC32 does not like ?:
+  wxWindow *panel ;
+  if ( propDialog )
+  {
+    panel = propDialog ;
+  }
+  else
+  {
+    panel = propFrame->GetPropertyPanel() ;
+  }
+    
   wxLayoutConstraints* c;
 
 #if 0
   wxLayoutConstraints* c;
 
 #if 0