Commit 00b24315 authored by Pino Toscano's avatar Pino Toscano

try to skip one level of printing redirection madness, let's see how it behaves in 4.3beta2

CCBUG: 185296

svn path=/trunk/KDE/kdegraphics/okular/; revision=977210
parent cb4b2847
......@@ -849,6 +849,7 @@ void PDFGenerator::requestFontData(const Okular::FontInfo &font, QByteArray *dat
bool PDFGenerator::print( QPrinter& printer )
{
#if DUMMY_QPRINTER_COPY
// Get the real page size to pass to the ps generator
QPrinter dummy( QPrinter::PrinterResolution );
dummy.setFullPage( true );
......@@ -857,6 +858,10 @@ bool PDFGenerator::print( QPrinter& printer )
dummy.setPaperSize( printer.paperSize( QPrinter::Millimeter ), QPrinter::Millimeter );
int width = dummy.width();
int height = dummy.height();
#else
int width = printer.width();
int height = printer.height();
#endif
// Create the tempfile to send to FilePrinter, which will manage the deletion
KTemporaryFile tf;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment