From bc0ae5dea649cc19aa6e3c820a04b65cbbbf45a4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 24 Jun 2000 23:33:04 +0000 Subject: Fixed crash in indentation guides when indent size is 0. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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); -- cgit v1.2.3