]> git.saurik.com Git - wxWidgets.git/commitdiff
Included required wx/image.h and added wxUSE_IMAGE guard.
authorDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 16 Feb 2004 21:35:54 +0000 (21:35 +0000)
committerDimitri Schoolwerth <dimitri.schoolwerth@gmail.com>
Mon, 16 Feb 2004 21:35:54 +0000 (21:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/dialogs/dialogs.cpp

index 1a6f39515ab83bd6e91a8d625a438f7009adc4d0..50c34424f455e2a52dc58a2dc072051342ca09a6 100644 (file)
@@ -38,6 +38,7 @@
 #include "wx/progdlg.h"
 #include "wx/fdrepdlg.h"
 #include "wx/busyinfo.h"
+#include "wx/image.h"
 
 #define wxTEST_GENERIC_DIALOGS_IN_MSW 0
 
@@ -123,7 +124,9 @@ MyCanvas *myCanvas = (MyCanvas *) NULL;
 // `Main program' equivalent, creating windows and returning main app frame
 bool MyApp::OnInit()
 {
+#if wxUSE_IMAGE
     wxInitAllImageHandlers();
+#endif
 
 #if defined(__WXGTK__) && defined(wxUSE_UNICODE)
   wxConvCurrent = &wxConvLibc;