diff options
author | nyamatongwe <devnull@localhost> | 2000-06-17 02:14:01 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-06-17 02:14:01 +0000 |
commit | 1dcaa0564b7fc7aa4f98083234d42fe5867080bc (patch) | |
tree | f164f0e1d489274608bca19996184ee472219798 /src | |
parent | 9411ed02dc1eeda8e3e318051d68665f16bb6839 (diff) | |
download | scintilla-mirror-1dcaa0564b7fc7aa4f98083234d42fe5867080bc.tar.gz |
Fixed performance problem with line < 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index c5aad504d..b6b875c66 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -592,6 +592,8 @@ void Document::SetLineIndentation(int line, int indent) { } int Document::GetLineIndentPosition(int line) { + if (line < 0) + return 0; int pos = LineStart(line); int length = Length(); while ((pos < length) && isindentchar(cb.CharAt(pos))) { |