X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ecc4f568a9e2dd566eb74b2616b4172863db5e7f..fb5cb86797d8c3a670bb060c1d042bd018cc4bba:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index 44305243f7..9c756c35da 100644 --- a/src/common/rgncmn.cpp +++ b/src/common/rgncmn.cpp @@ -4,7 +4,6 @@ // Author: Robin Dunn // Modified by: // Created: 27-Mar-2003 -// RCS-ID: $Id$ // Copyright: (c) Robin Dunn // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -33,7 +32,7 @@ // ============================================================================ // ---------------------------------------------------------------------------- -// region comparision +// region comparison // ---------------------------------------------------------------------------- bool wxRegionBase::IsEqual(const wxRegion& region) const @@ -60,7 +59,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);