git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37888
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
// do not forget the last byte
}
// do not forget the last byte
- if ((bpp == 1) && (width % 8 != 0))
+ if ( dst && (width % 8 != 0) )
dst[h*dstbyteperline+width/8] = outbyte;
}
gdk_image_destroy( img );
if (gc) gdk_gc_unref( gc );
dst[h*dstbyteperline+width/8] = outbyte;
}
gdk_image_destroy( img );
if (gc) gdk_gc_unref( gc );
{
bmp = wxBitmap( (const char *)dst, width, height, 1 );
free( dst );
{
bmp = wxBitmap( (const char *)dst, width, height, 1 );
free( dst );