diff options
author | nyamatongwe <devnull@localhost> | 2007-07-26 08:04:03 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2007-07-26 08:04:03 +0000 |
commit | 8e7a29f2fd09477eb41e2d5bd33d11ef04740c32 (patch) | |
tree | 45eef4bb6dfafb520f5996624dde9bfc3f15d6e2 /win32/ScintillaWin.cxx | |
parent | d9bfb39e4ed8fa194b0d9f1f675cf24fb09bb958 (diff) | |
download | scintilla-mirror-8e7a29f2fd09477eb41e2d5bd33d11ef04740c32.tar.gz |
Optimised previous change to avoid extra redraws when modification does not
affect visible area.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index c7ed3ddfa..7fb12c97e 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1069,7 +1069,7 @@ bool ScintillaWin::HaveMouseCapture() { bool ScintillaWin::PaintContains(PRectangle rc) { bool contains = true; - if (paintState == painting) { + if ((paintState == painting) && (!rc.Empty())) { if (!rcPaint.Contains(rc)) { contains = false; } else { |