fix wxSplitPath usage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57882 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -35,6 +35,7 @@
|
|||||||
#include "wx/cmdline.h"
|
#include "wx/cmdline.h"
|
||||||
#include "wx/image.h"
|
#include "wx/image.h"
|
||||||
#include "wx/file.h"
|
#include "wx/file.h"
|
||||||
|
#include "wx/filename.h"
|
||||||
|
|
||||||
#ifdef __WXX11__
|
#ifdef __WXX11__
|
||||||
#include "wx/x11/reparent.h"
|
#include "wx/x11/reparent.h"
|
||||||
@@ -519,7 +520,7 @@ wxBitmapType wxDetermineImageType(const wxString& filename)
|
|||||||
{
|
{
|
||||||
wxString path, name, ext;
|
wxString path, name, ext;
|
||||||
|
|
||||||
wxSplitPath(filename, & path, & name, & ext);
|
wxFileName::SplitPath(filename, & path, & name, & ext);
|
||||||
|
|
||||||
ext.MakeLower();
|
ext.MakeLower();
|
||||||
if (ext == _T("jpg") || ext == _T("jpeg"))
|
if (ext == _T("jpg") || ext == _T("jpeg"))
|
||||||
|
Reference in New Issue
Block a user