aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index c60554a23..0c96d6024 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1211,6 +1211,10 @@ PRectangle ScintillaGTK::GetClientRectangle() const {
// Move to origin
rc.right -= rc.left;
rc.bottom -= rc.top;
+ if (rc.bottom < 0)
+ rc.bottom = 0;
+ if (rc.right < 0)
+ rc.right = 0;
rc.left = 0;
rc.top = 0;
return rc;