aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2002-02-11 06:13:13 +0000
committernyamatongwe <unknown>2002-02-11 06:13:13 +0000
commit505e208a63d2765f05c79ff4c42d264d83eb868f (patch)
treef72fc1ea3db4668f1400f3595c1f2089b9e9ba96
parent059b5ea7391a9879a96921b256a185165e8ab2db (diff)
downloadscintilla-mirror-505e208a63d2765f05c79ff4c42d264d83eb868f.tar.gz
X only uses 16 bit coordinates so avoid drawing rectangles beyond 32000.
-rw-r--r--gtk/PlatGTK.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/PlatGTK.cxx b/gtk/PlatGTK.cxx
index bc2c11c3b..8e6c527bf 100644
--- a/gtk/PlatGTK.cxx
+++ b/gtk/PlatGTK.cxx
@@ -379,7 +379,7 @@ void SurfaceImpl::RectangleDraw(PRectangle rc, ColourAllocated fore, ColourAlloc
void SurfaceImpl::FillRectangle(PRectangle rc, ColourAllocated back) {
PenColour(back);
- if (drawable) {
+ if (drawable && (rc.left < 32000)) { // Protect against out of range
gdk_draw_rectangle(drawable, gc, 1,
rc.left, rc.top,
rc.right - rc.left, rc.bottom - rc.top);