// ============================================================================
// ----------------------------------------------------------------------------
-// region comparision
+// region comparison
// ----------------------------------------------------------------------------
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);