diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-03-26 12:40:18 (GMT) |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2009-03-26 12:40:52 (GMT) |
commit | 2ba3cd8175e54a2e122591f12dacdeaa81a9af46 (patch) | |
tree | e4d714166eb2d016be65914b8d0d2c79a559ef9a /src/gui/text/qtextdocument.h | |
parent | b641daa11d579f58468be7f30042a100d8c483c5 (diff) | |
download | Qt-2ba3cd8175e54a2e122591f12dacdeaa81a9af46.zip Qt-2ba3cd8175e54a2e122591f12dacdeaa81a9af46.tar.gz Qt-2ba3cd8175e54a2e122591f12dacdeaa81a9af46.tar.bz2 |
Fix crash when accessing newly constructed QTextObjects.
The pieceTable member was only initialized by QTextDocumentPrivate
_after_ the call to createObject. This patch initializes it at
construction time.
Task-number: 246138
Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/text/qtextdocument.h')
-rw-r--r-- | src/gui/text/qtextdocument.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocument.h b/src/gui/text/qtextdocument.h index c337783..9c3d6c2 100644 --- a/src/gui/text/qtextdocument.h +++ b/src/gui/text/qtextdocument.h @@ -287,6 +287,7 @@ public: private: Q_DISABLE_COPY(QTextDocument) Q_DECLARE_PRIVATE(QTextDocument) + friend class QTextObjectPrivate; }; Q_DECLARE_OPERATORS_FOR_FLAGS(QTextDocument::FindFlags) |