]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
Restore ability to parse hours only with wxDateTime::ParseTime().
[wxWidgets.git] / src / common / rgncmn.cpp
index bd8281850b42f9862887c0487b5660f77cfae1fd..f70b68030350eef7f8a36f6b9cbbca33c63481ae 100644 (file)
@@ -33,7 +33,7 @@
 // ============================================================================
 
 // ----------------------------------------------------------------------------
-// region comparision
+// region comparison
 // ----------------------------------------------------------------------------
 
 bool wxRegionBase::IsEqual(const wxRegion& region) const
@@ -60,7 +60,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);