X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e188df5deaec1fedadeee361d6e40fb40f9c8d1e..dde4740fe1dddbb2738a0afd054f493cb0dd67d1:/src/gtk/dataobj.cpp diff --git a/src/gtk/dataobj.cpp b/src/gtk/dataobj.cpp index 5a22da60b1..f52cdb4a3d 100644 --- a/src/gtk/dataobj.cpp +++ b/src/gtk/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