X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f9ebac93e71d7e97259593390dcbbbe306714dce..c3eeb758b7790948751f547fd5ef803a75b803a4:/src/gtk1/bitmap.cpp diff --git a/src/gtk1/bitmap.cpp b/src/gtk1/bitmap.cpp index 38a044b1aa..de3d7c1f67 100644 --- a/src/gtk1/bitmap.cpp +++ b/src/gtk1/bitmap.cpp @@ -415,7 +415,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, { char outbyte = 0; int old_x = -1; - guint32 old_pixval; + guint32 old_pixval = 0; for (int w = 0; w < width; w++) { @@ -480,7 +480,7 @@ wxBitmap wxBitmap::Rescale( int clipx, int clipy, int clipwidth, int clipheight, { char outbyte = 0; int old_x = -1; - guint32 old_pixval; + guint32 old_pixval = 0; for (int w = 0; w < width; w++) { @@ -1079,7 +1079,7 @@ bool wxBitmap::operator != ( const wxBitmap& bmp ) const bool wxBitmap::Ok() const { - return (m_refData != NULL); + return (m_refData != NULL) && (M_BMPDATA->m_bitmap || M_BMPDATA->m_pixmap); } int wxBitmap::GetHeight() const