diff options
author | David Boddie <dboddie@trolltech.com> | 2009-11-16 16:33:02 (GMT) |
---|---|---|
committer | David Boddie <dboddie@trolltech.com> | 2009-11-16 16:33:02 (GMT) |
commit | ce7dcaf43089d6d0d4bb6029c42991cc6fec2576 (patch) | |
tree | a047437c5a6fbced0cb34850fcda2ccd727bd67c /src/gui/text/qtextdocument.cpp | |
parent | f6814daef41f438f6c78bf7e67f98c5b552201e4 (diff) | |
parent | aa482dcbde0089fe32ca59e39f17e5e44fd8b244 (diff) | |
download | Qt-ce7dcaf43089d6d0d4bb6029c42991cc6fec2576.zip Qt-ce7dcaf43089d6d0d4bb6029c42991cc6fec2576.tar.gz Qt-ce7dcaf43089d6d0d4bb6029c42991cc6fec2576.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/gui/text/qtextdocument.cpp')
-rw-r--r-- | src/gui/text/qtextdocument.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/text/qtextdocument.cpp b/src/gui/text/qtextdocument.cpp index 1aad385..048325c 100644 --- a/src/gui/text/qtextdocument.cpp +++ b/src/gui/text/qtextdocument.cpp @@ -64,6 +64,7 @@ #include "qtextdocument_p.h" #include <private/qprinter_p.h> +#include <private/qabstracttextdocumentlayout_p.h> #include <limits.h> @@ -1722,6 +1723,9 @@ void QTextDocument::print(QPrinter *printer) const QAbstractTextDocumentLayout *layout = doc->documentLayout(); layout->setPaintDevice(p.device()); + // copy the custom object handlers + layout->d_func()->handlers = documentLayout()->d_func()->handlers; + int dpiy = p.device()->logicalDpiY(); int margin = 0; if (printer->fullPage() && !printer->d_func()->hasCustomPageMargins) { |