case wxT('5'): // RAW Grey
case wxT('6'): break;
default:
- if (verbose) wxLogError(_("PNM: File format is not recognized."));
+ if (verbose)
+ {
+ wxLogError(_("PNM: File format is not recognized."));
+ }
return false;
}
if (!ptr)
{
if (verbose)
+ {
wxLogError( _("PNM: Couldn't allocate memory.") );
+ }
return false;
}
*ptr++=(unsigned char)value; // B
if ( !buf_stream )
{
- if (verbose) wxLogError(_("PNM: File seems truncated."));
+ if (verbose)
+ {
+ wxLogError(_("PNM: File seems truncated."));
+ }
return false;
}
}
if ( !buf_stream )
{
- if (verbose) wxLogError(_("PNM: File seems truncated."));
+ if (verbose)
+ {
+ wxLogError(_("PNM: File seems truncated."));
+ }
return false;
}
}
*ptr++=value; // B
if ( !buf_stream )
{
- if (verbose) wxLogError(_("PNM: File seems truncated."));
+ if (verbose)
+ {
+ wxLogError(_("PNM: File seems truncated."));
+ }
return false;
}
}
{
Skip_Comment(stream);
+ // it's ok to modify the stream position here
if ( stream.GetC() == 'P' )
{
switch ( stream.GetC() )