(
filename,
static_cast<const char *>(textdata.To8BitData()),
- data.length(),
+ wxStrlen(static_cast<const char *>(textdata.To8BitData())),
mimetype
);
}
return;
wxMemoryOutputStream mems;
- if ( image.Ok() && image.SaveFile(mems, type) )
+ if ( image.IsOk() && image.SaveFile(mems, type) )
{
m_Hash[filename] = new wxMemoryFSFile
(