X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecc4f568a9e2dd566eb74b2616b4172863db5e7f..db06cdc08cee40c72854d6a883cf017c2bcc670e:/src/common/rgncmn.cpp?ds=inline diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index 44305243f7..93de0d48f8 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -60,7 +60,7 @@ bool wxRegionBase::IsEqual(const wxRegion& region) const wxBitmap wxRegionBase::ConvertToBitmap() const { wxRect box = GetBox(); - wxBitmap bmp(box.GetWidth(), box.GetHeight()); + wxBitmap bmp(box.GetRight() + 1, box.GetBottom() + 1); wxMemoryDC dc; dc.SelectObject(bmp); dc.SetBackground(*wxBLACK_BRUSH);