]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/dcclient.cpp
corrected WXDLLIMPEXP_ declaration for wxEventBlocker: it's part of core, not base
[wxWidgets.git] / src / x11 / dcclient.cpp
index d5832711b8b2e180aae0a8d00686ee65a6167906..d4fa32eb392413ed515c4622cfdf9187800ef3e7 100644 (file)
@@ -2161,6 +2161,12 @@ void wxWindowDC::DoSetClippingRegion( wxCoord x, wxCoord y, wxCoord width, wxCoo
 
     if (!m_window) return;
 
+    if (width <= 0)
+        width = 1;
+
+    if (height <= 0)
+        height = 1;
+
     wxRect rect;
     rect.x = XLOG2DEV(x);
     rect.y = YLOG2DEV(y);