aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-06-24 23:33:04 +0000
committernyamatongwe <unknown>2000-06-24 23:33:04 +0000
commit82f03dee3f90dc63785fbc320a1c07a2e5bf5177 (patch)
tree7ede2d0aadf63b08c1cc4ba35a21e15f28116eae
parentd54dd98c5183dd6d38e9556ce1e8dd45670a5c39 (diff)
downloadscintilla-mirror-82f03dee3f90dc63785fbc320a1c07a2e5bf5177.tar.gz
Fixed crash in indentation guides when indent size is 0.
-rw-r--r--src/Editor.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index d55b88095..06c8a01b4 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -808,6 +808,8 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
bool inIndentation = true;
int indentWidth = pdoc->indentInChars * vs.spaceWidth;
+ if (indentWidth == 0)
+ indentWidth = pdoc->tabInChars * vs.spaceWidth;
int posLineStart = pdoc->LineStart(line);
int posLineEnd = pdoc->LineStart(line + 1);