]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/rgncmn.cpp
Generate key events in generic wxDataViewCtrl implementation.
[wxWidgets.git] / src / common / rgncmn.cpp
index bd8281850b42f9862887c0487b5660f77cfae1fd..44305243f7b15349ad001ee9c76f6ac1d5f39425 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.GetWidth(), box.GetHeight());
     wxMemoryDC dc;
     dc.SelectObject(bmp);
     dc.SetBackground(*wxBLACK_BRUSH);