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 /src/Editor.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 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 6 | 
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() { | 
