make sure XPM handler is added at most once

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-12-19 12:24:47 +00:00
parent eca005a814
commit b65e4260a7

View File

@@ -55,7 +55,7 @@ void wxInitAllImageHandlers()
#if wxUSE_IFF
wxImage::AddHandler( new wxIFFHandler );
#endif
#if wxUSE_XPM
#if wxUSE_XPM && (defined(__WXGTK__) || defined(__WXMOTIF__))
wxImage::AddHandler( new wxXPMHandler );
#endif
#if wxUSE_ICO_CUR