Skip to content
Snippets Groups Projects
Commit f552e1d0 authored by mae's avatar mae
Browse files

fix crash

confusion between columns and character positions
parent 38abb728
Branches
Tags
No related merge requests found
...@@ -145,7 +145,7 @@ int TabSettings::indentationColumn(const QString &text) const ...@@ -145,7 +145,7 @@ int TabSettings::indentationColumn(const QString &text) const
int TabSettings::maximumPadding(const QString &text) const int TabSettings::maximumPadding(const QString &text) const
{ {
int fns = columnAt(text, firstNonSpace(text)); int fns = firstNonSpace(text);
int i = fns; int i = fns;
while (i > 0) { while (i > 0) {
if (text.at(i-1) != QLatin1Char(' ')) if (text.at(i-1) != QLatin1Char(' '))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment