void Skip_Comment(wxInputStream &stream)
{
- wxString line;
wxTextInputStream text_stream(stream);
if (stream.Peek()==wxT('#'))
{
- text_stream >> line;
+ text_stream.ReadLine();
Skip_Comment(stream);
}
}
{
wxUint32 width, height;
wxUint16 maxval;
- wxString line;
char c(0);
image->Destroy();
return FALSE;
}
- text_stream >> line; // for the \n
+ text_stream.ReadLine(); // for the \n
Skip_Comment(buf_stream);
text_stream >> width >> height ;
Skip_Comment(buf_stream);