]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/imagxpm.cpp
Workaround for GTK+ sensitivity bug
[wxWidgets.git] / src / common / imagxpm.cpp
index 5aa6dded4392573a8c0372f77b49e9c8d777c733..3f1caeaf46a07610a520c1b70674ffc7341f767e 100644 (file)
@@ -80,6 +80,7 @@ license is as follows:
 #include "wx/imagxpm.h"
 #include "wx/wfstream.h"
 #include "wx/xpmdecod.h"
+#include "wx/filename.h"
 
 IMPLEMENT_DYNAMIC_CLASS(wxXPMHandler,wxImageHandler)
 
@@ -123,8 +124,8 @@ bool wxXPMHandler::SaveFile(wxImage * image,
     wxString sName;
     if ( image->HasOption(wxIMAGE_OPTION_FILENAME) )
     {
-        wxSplitPath(image->GetOption(wxIMAGE_OPTION_FILENAME),
-                    NULL, &sName, NULL);
+        wxFileName::SplitPath(image->GetOption(wxIMAGE_OPTION_FILENAME),
+                              NULL, &sName, NULL);
         sName << wxT("_xpm");
     }