git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4242
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void Skip_Comment(wxInputStream &stream)
{
void Skip_Comment(wxInputStream &stream)
{
wxTextInputStream text_stream(stream);
if (stream.Peek()==wxT('#'))
{
wxTextInputStream text_stream(stream);
if (stream.Peek()==wxT('#'))
{
+ text_stream.ReadLine();
Skip_Comment(stream);
}
}
Skip_Comment(stream);
}
}
{
wxUint32 width, height;
wxUint16 maxval;
{
wxUint32 width, height;
wxUint16 maxval;
char c(0);
image->Destroy();
char c(0);
image->Destroy();
- text_stream >> line; // for the \n
+ text_stream.ReadLine(); // for the \n
Skip_Comment(buf_stream);
text_stream >> width >> height ;
Skip_Comment(buf_stream);
Skip_Comment(buf_stream);
text_stream >> width >> height ;
Skip_Comment(buf_stream);