aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 187503256..4d10b6272 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5471,7 +5471,11 @@ void Editor::SetFocusState(bool focusState) {
}
bool Editor::PaintContains(PRectangle rc) {
- return rcPaint.Contains(rc);
+ if (rc.Empty()) {
+ return true;
+ } else {
+ return rcPaint.Contains(rc);
+ }
}
bool Editor::PaintContainsMargin() {