Fix uninitialized member variable in QDeclarativeTextEdit
authorPekka Vuorela <pekka.ta.vuorela@nokia.com>
Thu, 17 Nov 2011 16:10:22 +0000 (18:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 1 Dec 2011 12:30:53 +0000 (13:30 +0100)
Change-Id: I7ef3902488bb4ba1129933e3a4015e266be8b821
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/qtquick1/graphicsitems/qdeclarativetextedit_p_p.h

index b370d5a..ed75a97 100644 (file)
@@ -74,7 +74,7 @@ public:
       showInputPanelOnFocus(true), clickCausedFocus(false), persistentSelection(true), requireImplicitWidth(false),
       hAlignImplicit(true), rightToLeftText(false), textMargin(0.0), lastSelectionStart(0), lastSelectionEnd(0),
       cursorComponent(0), cursor(0), format(QDeclarative1TextEdit::AutoText), document(0), wrapMode(QDeclarative1TextEdit::NoWrap),
-      mouseSelectionMode(QDeclarative1TextEdit::SelectCharacters), selectByMouse(false), canPaste(false),
+      mouseSelectionMode(QDeclarative1TextEdit::SelectCharacters), lineCount(0), selectByMouse(false), canPaste(false),
       yoff(0)
     {
 #ifdef Q_OS_SYMBIAN