#include "wx/wxprec.h"
#include "wx/dataobj.h"
+
+#if wxUSE_DATAOBJ
+
#include "wx/app.h"
#include "wx/debug.h"
#include "wx/mstream.h"
#include "wx/image.h"
#include "wx/log.h"
+#include "wx/uri.h"
#include <gdk/gdk.h>
lenPrefix += 2;
}
- AddFile(wxURL::ConvertFromURI(filename.c_str() + lenPrefix));
+ AddFile(wxURI::Unescape(filename.c_str() + lenPrefix));
filename.Empty();
}
else
image.SaveFile(mstream, wxBITMAP_TYPE_PNG);
}
-
+#endif // wxUSE_DATAOBJ