X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e188df5deaec1fedadeee361d6e40fb40f9c8d1e..f2ba382267498758099531f1eeba7a9e2dc58daa:/src/gtk1/dataobj.cpp diff --git a/src/gtk1/dataobj.cpp b/src/gtk1/dataobj.cpp index 5a22da60b1..f52cdb4a3d 100644 --- a/src/gtk1/dataobj.cpp +++ b/src/gtk1/dataobj.cpp @@ -20,6 +20,7 @@ #include "wx/mstream.h" #include "wx/image.h" #include "wx/log.h" +#include "wx/uri.h" #include @@ -277,7 +278,7 @@ bool wxFileDataObject::SetData(size_t WXUNUSED(size), const void *buf) lenPrefix += 2; } - AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix)); + AddFile(wxURI::Unescape(filename.c_str() + lenPrefix)); filename.Empty(); } else