]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/image/image.cpp
STC is not a separate library anymore
[wxWidgets.git] / samples / image / image.cpp
index f3cc4216505a645ede9cf79f9fe763330607b89f..99c3ab73ebf7195068b04e8094618cb39d5f5601 100644 (file)
@@ -185,7 +185,7 @@ public:
         wxFileName::SplitPath(savefilename, NULL, NULL, &extension);
 
         bool saved = false;
-        if ( extension == _T("bpp") )
+        if ( extension == _T("bmp") )
         {
             static const int bppvalues[] =
             {
@@ -1168,6 +1168,9 @@ void MyFrame::OnPaste(wxCommandEvent& WXUNUSED(event))
 
 bool MyApp::OnInit()
 {
+    if ( !wxApp::OnInit() )
+        return false;
+
     wxInitAllImageHandlers();
 
     wxFrame *frame = new MyFrame();