summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextlist.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2010-06-05 20:11:57 (GMT)
committerLars Knoll <lars.knoll@nokia.com>2010-06-09 22:07:58 (GMT)
commit7b0f00e8c8a4ec541dba510debcf786c7edb7fae (patch)
tree4185569c55d8c53a3ee76782fb95759cc0c27327 /src/gui/text/qtextlist.cpp
parentfee7f7d67f780b798a63994a1125f9ca3ade1bd3 (diff)
downloadQt-7b0f00e8c8a4ec541dba510debcf786c7edb7fae.zip
Qt-7b0f00e8c8a4ec541dba510debcf786c7edb7fae.tar.gz
Qt-7b0f00e8c8a4ec541dba510debcf786c7edb7fae.tar.bz2
Use the textDirection() of blocks correctly.
Task-number: Part of QT-3292 Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qtextlist.cpp')
-rw-r--r--src/gui/text/qtextlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qtextlist.cpp b/src/gui/text/qtextlist.cpp
index 2986ee7..a0ff520 100644
--- a/src/gui/text/qtextlist.cpp
+++ b/src/gui/text/qtextlist.cpp
@@ -262,7 +262,7 @@ QString QTextList::itemText(const QTextBlock &blockIt) const
default:
Q_ASSERT(false);
}
- if (blockFormat.layoutDirection() == Qt::RightToLeft)
+ if (blockIt.textDirection() == Qt::RightToLeft)
return result.prepend(QLatin1Char('.'));
return result + QLatin1Char('.');
}