]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/fontpicker.cpp
use wxFD_XXX instead of deprecated wxXXX in the documentation
[wxWidgets.git] / samples / widgets / fontpicker.cpp
index 3ea6f75e5ee1e73fc11f1c99cb65b7ee5c328f2c..d26fac62dc97f5ec7a2b1be392a21fce06142c83 100644 (file)
@@ -170,7 +170,7 @@ void FontPickerWidgetsPage::CreateContent()
     sz->Add(boxleft, 0, wxGROW|wxALL, 5);
     sz->Add(m_sizer, 1, wxGROW|wxALL, 5);
 
     sz->Add(boxleft, 0, wxGROW|wxALL, 5);
     sz->Add(m_sizer, 1, wxGROW|wxALL, 5);
 
-    SetSizerAndFit(sz);
+    SetSizer(sz);
 }
 
 void FontPickerWidgetsPage::CreatePicker()
 }
 
 void FontPickerWidgetsPage::CreatePicker()