]> git.saurik.com Git - wxWidgets.git/commitdiff
removed XPM handler from wxImage's standard handlers, let's see if it does any harm
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 9 Dec 2002 21:03:25 +0000 (21:03 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 9 Dec 2002 21:03:25 +0000 (21:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/imagall.cpp
src/common/image.cpp

index aaf6d459c78a3868eef60279aba8a9312a0d90a3..42f2e50f95743b9354d910a6e021d00d2cec70a1 100644 (file)
@@ -60,11 +60,7 @@ void wxInitAllImageHandlers()
   wxImage::AddHandler( new wxCURHandler );
   wxImage::AddHandler( new wxANIHandler );
 #endif
-#if wxUSE_XPM && (defined(__WXGTK__) || defined(__WXMOTIF__))
-  // NB: keep this #ifdef in sync with the one in image.cpp
-  //     (wxImage::InitStandardHandlers) - they must complement each other
-  //     so that there's always exactly one XPM handler added after calling
-  //     wxInitAllImageHandlers()
+#if wxUSE_XPM
   wxImage::AddHandler( new wxXPMHandler );
 #endif
 }
index f26ae138557973610262b0c5753dd24b9e4a6cba..a9201c2aaf17c4d34a59b477096869ce493243d6 100644 (file)
@@ -1267,13 +1267,6 @@ void wxImage::InitStandardHandlers()
 #if wxUSE_STREAMS
     AddHandler(new wxBMPHandler);
 #endif // wxUSE_STREAMS
-
-#if wxUSE_XPM && !defined(__WXGTK__) && !defined(__WXMOTIF__)
-    // NB: keep this #ifdef in sync with the one in imagall.cpp -
-    //     they must complement each other so that there's always exactly
-    //     one XPM handler added after calling wxInitAllImageHandlers()
-    AddHandler(new wxXPMHandler);
-#endif
 }
 
 void wxImage::CleanUpHandlers()