Fixed a problem when opening files on Linux
This commit is contained in:
parent
0fe53c25b9
commit
7c8f818edb
|
@ -731,7 +731,7 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url )
|
||||||
return wxFileName ( url );
|
return wxFileName ( url );
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if ( uri->scheme == NULL || strcmp (uri->scheme, "file" ) )
|
if ( uri->scheme != NULL && strcmp (uri->scheme, "file" ) )
|
||||||
break;
|
break;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if ( uri->server && stricmp ( uri->server, "localhost") )
|
if ( uri->server && stricmp ( uri->server, "localhost") )
|
||||||
|
@ -758,6 +758,6 @@ wxFileName WrapLibxml::URLToFileName ( const wxString &url )
|
||||||
|
|
||||||
xmlFreeURI ( uri );
|
xmlFreeURI ( uri );
|
||||||
|
|
||||||
return wxFileName();
|
return wxFileName(url);
|
||||||
#endif // wxCHECK_VERSION(2,9,0)
|
#endif // wxCHECK_VERSION(2,9,0)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue