X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..2f36b4d22beeb7f4f0cedf922c0c26d037f54477:/src/common/rgncmn.cpp diff --git a/src/common/rgncmn.cpp b/src/common/rgncmn.cpp index bd8281850b..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.GetRight(), box.GetBottom()); + wxBitmap bmp(box.GetRight() + 1, box.GetBottom() + 1); wxMemoryDC dc; dc.SelectObject(bmp); dc.SetBackground(*wxBLACK_BRUSH);