summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextdocument.cpp
diff options
context:
space:
mode:
authorDavid Boddie <dboddie@trolltech.com>2009-11-16 16:33:02 (GMT)
committerDavid Boddie <dboddie@trolltech.com>2009-11-16 16:33:02 (GMT)
commitce7dcaf43089d6d0d4bb6029c42991cc6fec2576 (patch)
treea047437c5a6fbced0cb34850fcda2ccd727bd67c /src/gui/text/qtextdocument.cpp
parentf6814daef41f438f6c78bf7e67f98c5b552201e4 (diff)
parentaa482dcbde0089fe32ca59e39f17e5e44fd8b244 (diff)
downloadQt-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.cpp4
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) {