fix crash

confusion between columns and character positions
This commit is contained in:
mae
2010-07-07 11:13:24 +02:00
parent 38abb7285c
commit f552e1d0c5

View File

@@ -145,7 +145,7 @@ int TabSettings::indentationColumn(const QString &text) const
int TabSettings::maximumPadding(const QString &text) const
{
int fns = columnAt(text, firstNonSpace(text));
int fns = firstNonSpace(text);
int i = fns;
while (i > 0) {
if (text.at(i-1) != QLatin1Char(' '))