]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
Initial work on virtual file system support for the WebKitGTK+ backend. It now suppor...
[wxWidgets.git] / src / common / rgncmn.cpp
index bd8281850b42f9862887c0487b5660f77cfae1fd..93de0d48f84f69e2d4280d9ac0ba68e598aad8f0 100644 (file)
@@ -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);