X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e11f2e1645e5322b8f44112733bd663927cf7783..adb45366da2cb1ee72f548ab2fa149f071327682:/src/msw/dcprint.cpp?ds=sidebyside diff --git a/src/msw/dcprint.cpp b/src/msw/dcprint.cpp index ed38d9fe64..e04d74c88d 100644 --- a/src/msw/dcprint.cpp +++ b/src/msw/dcprint.cpp @@ -435,7 +435,7 @@ void wxPrinterDC::DoDrawBitmap(const wxBitmap &bmp, memset( info, 0, sizeof( BITMAPINFOHEADER ) ); #if wxUSE_DRAWBITMAP_24BITS - int iBitsSize = ((width + 3 ) & ~3 ) * height * 3; + int iBitsSize = (((width * 3) + 3 ) & ~3 ) * height; #else int iBitsSize = ((width + 3 ) & ~3 ) * height ; #endif