diff options
author | J-P Nurmi <jpnurmi@digia.com> | 2014-04-29 14:56:47 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-01 09:42:06 +0200 |
commit | 9990c0f577f6a6a67ccebffb56ad1afc7a98ed1d (patch) | |
tree | ab8e2c92ef655a678b7f37558eadba9ebcdf21c4 /src/quick/util | |
parent | 1fb3431a039c7da57f8416ce9f2db895b0744763 (diff) |
QQuickStyledText: do not insert an extra blank line in the beginning
Do not insert an extra line-separator when the document begins with
an element such as <p> or <h1> that causes an implicit line break.
Task-number: QTBUG-38531
Change-Id: Ib1da9df9a4a767cf11c63a4e2845f334cd69df69
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Diffstat (limited to 'src/quick/util')
-rw-r--r-- | src/quick/util/qquickstyledtext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickstyledtext.cpp b/src/quick/util/qquickstyledtext.cpp index f2b2d2af06..80586bd45b 100644 --- a/src/quick/util/qquickstyledtext.cpp +++ b/src/quick/util/qquickstyledtext.cpp @@ -89,7 +89,7 @@ public: QQmlContext *context, bool preloadImages, bool *fontSizeModified) - : text(t), layout(l), imgTags(&imgTags), baseFont(layout.font()), baseUrl(baseUrl), hasNewLine(false), nbImages(0), updateImagePositions(false) + : text(t), layout(l), imgTags(&imgTags), baseFont(layout.font()), baseUrl(baseUrl), hasNewLine(true), nbImages(0), updateImagePositions(false) , preFormat(false), prependSpace(false), hasSpace(true), preloadImages(preloadImages), fontSizeModified(fontSizeModified), context(context) { } |