diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2011-10-05 13:50:07 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-05 16:25:17 +0200 |
commit | 1c9e8db29e883328f78cd9ab668b066fddc54525 (patch) | |
tree | b27e785f2fe405c938df5bf791b0c353ea7eb69f /src | |
parent | 8058fd80b712c802c23c36812b3dec47dce15676 (diff) |
Don't overwrite block formats in QSGText
When QSGText has rich text, we need to retain the block formats
already in the document instead of overwriting them. E.g. lists
would not work because of this bug.
Change-Id: I4cdae55e2358950a330c61613b5fd41e1986dc13
Reviewed-on: http://codereview.qt-project.org/6059
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/items/qsgtext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/items/qsgtext.cpp b/src/declarative/items/qsgtext.cpp index 5b72eab8ff..8e5ef7a7c6 100644 --- a/src/declarative/items/qsgtext.cpp +++ b/src/declarative/items/qsgtext.cpp @@ -258,7 +258,7 @@ void QSGTextPrivate::updateLayout() blockFormat.setLineHeight((lineHeightMode == QSGText::FixedHeight ? lineHeight : lineHeight * 100), type); for (QTextBlock it = doc->begin(); it != doc->end(); it = it.next()) { QTextCursor cursor(it); - cursor.setBlockFormat(blockFormat); + cursor.mergeBlockFormat(blockFormat); } } |