X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e188df5deaec1fedadeee361d6e40fb40f9c8d1e..822cf31c2799fc5c68f7ceaabd64f5bc82bf3409:/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