Commit 23857a68 authored by Albert Astals Cid's avatar Albert Astals Cid

Calculate PS paper size more correctly when passed to poppler

svn path=/trunk/KDE/kdegraphics/okular/; revision=885266
parent 3b091506
......@@ -845,6 +845,7 @@ bool PDFGenerator::print( QPrinter& printer )
QPrinter dummy( QPrinter::PrinterResolution );
dummy.setFullPage( true );
dummy.setOrientation( printer.orientation() );
dummy.setPageSize( printer.pageSize() );
int width = dummy.width();
int height = dummy.height();
......
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