git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37084
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- if (!handler->CanRead(stream))
+ if (stream.IsSeekable() && !handler->CanRead(stream))
{
wxLogError(_("Image file is not of type %d."), type);
return false;
{
wxLogError(_("Image file is not of type %d."), type);
return false;
- if (!handler->CanRead(stream))
+ if (stream.IsSeekable() && !handler->CanRead(stream))
{
wxLogError(_("Image file is not of type %s."), (const wxChar*) mimetype);
return false;
{
wxLogError(_("Image file is not of type %s."), (const wxChar*) mimetype);
return false;