Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 2602 → Rev 2613

/branches/Version13x/Scribus/scribus/plugins/pixmapexport/export.cpp
132,7 → 132,15
if (!carrier->doc->Pages.at(pageNr))
return FALSE;
 
QImage im = carrier->view->PageToPixmap(pageNr, qRound(carrier->doc->pageHeight * enlargement * (pageDPI / 72.0) / 100.0));
/* a little magic here - I need to compute the "maxGr" value...
* We need to know the right size of the page for landscape,
* portrait and user defined sizes.
*/
double pixmapSize;
(carrier->doc->pageHeight > carrier->doc->pageWidth)
? pixmapSize = carrier->doc->pageHeight
: pixmapSize = carrier->doc->pageWidth;
QImage im = carrier->view->PageToPixmap(pageNr, qRound(pixmapSize * enlargement * (pageDPI / 72.0) / 100.0));
int dpm = qRound(100.0 / 2.54 * pageDPI);
im.setDotsPerMeterY(dpm);
im.setDotsPerMeterX(dpm);