aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r--qt-ui/printlayout.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 2184f7366..f0cbacaa9 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -3,6 +3,7 @@
#include <QDesktopWidget>
#include <QApplication>
#include <QTextDocument>
+#include <QAbstractTextDocumentLayout>
#include "mainwindow.h"
#include "printlayout.h"
#include "../dive.h"
@@ -96,6 +97,7 @@ void PrintLayout::printTable() const
QSizeF pageSize;
pageSize.setWidth(pageRect.width());
pageSize.setHeight(pageRect.height());
+ doc.documentLayout()->setPaintDevice(printer);
doc.setPageSize(pageSize);
QString styleSheet(