summaryrefslogtreecommitdiff
path: root/src/plugins/texteditor/tabsettings.cpp
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-07-07 11:13:24 +0200
committermae <qt-info@nokia.com>2010-07-07 11:13:42 +0200
commitf552e1d0c5bb14d173e6b9661f83e94f1fa04c84 (patch)
tree20bf6a0d9123e33b5c6920ebb1e0884d998bb131 /src/plugins/texteditor/tabsettings.cpp
parent38abb7285c2f81719ec8658982e038b590a7c212 (diff)
downloadqt-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.cpp2
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(' '))