]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/samples/fl/fl_demo2.cpp
don't pass NULL pointer to printf(), this crashes Solaris printf
[wxWidgets.git] / contrib / samples / fl / fl_demo2.cpp
index dafbaa61ccee7af57179dbe75505ff369ce6e7c0..dd4fd7925690c8bd01dc32037d1037bffaabf59d 100644 (file)
@@ -96,7 +96,9 @@ bool MyApp::OnInit(void)
     menu_bar->Append(file_menu,   _("&File"));
     menu_bar->Append(active_menu, _("Active &Layout"));
 
+#if wxUSE_STATUSBAR
     frame->CreateStatusBar(3);
+#endif // wxUSE_STATUSBAR
 
     frame->SetMenuBar(menu_bar);
 
@@ -620,7 +622,7 @@ wxWindow* MyFrame::CreateDevLayout( wxFrameLayout& layout, wxWindow* pParent )
 {
     bool isNested = (pParent != mpInternalFrm);
 
-    // check if we're craeting nested layout
+    // check if we're creating nested layout
     if ( isNested )
     {
         layout.mBorderPen.SetColour( 128,255,128 );