diff options
author | mae <qt-info@nokia.com> | 2010-07-07 11:13:24 +0200 |
---|---|---|
committer | mae <qt-info@nokia.com> | 2010-07-07 11:13:42 +0200 |
commit | f552e1d0c5bb14d173e6b9661f83e94f1fa04c84 (patch) | |
tree | 20bf6a0d9123e33b5c6920ebb1e0884d998bb131 /src/plugins/texteditor/tabsettings.cpp | |
parent | 38abb7285c2f81719ec8658982e038b590a7c212 (diff) | |
download | qt-creator-f552e1d0c5bb14d173e6b9661f83e94f1fa04c84.tar.gz |
fix crash
confusion between columns and character positions
Diffstat (limited to 'src/plugins/texteditor/tabsettings.cpp')
-rw-r--r-- | src/plugins/texteditor/tabsettings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/texteditor/tabsettings.cpp b/src/plugins/texteditor/tabsettings.cpp index 8f45cd7f63..e02d13d74f 100644 --- a/src/plugins/texteditor/tabsettings.cpp +++ b/src/plugins/texteditor/tabsettings.cpp @@ -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(' ')) |