X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e188df5deaec1fedadeee361d6e40fb40f9c8d1e..7b25d8e7bd0eca9f0f6efe62b3721d14c394dac9:/src/gtk1/dataobj.cpp?ds=sidebyside 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