Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 2613 → Rev 2602

/branches/Version13x/Scribus/scribus/plugins/pixmapexport/export.cpp
132,15 → 132,7
if (!carrier->doc->Pages.at(pageNr))
return FALSE;
 
/* 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));
QImage im = carrier->view->PageToPixmap(pageNr, qRound(carrier->doc->pageHeight * enlargement * (pageDPI / 72.0) / 100.0));
int dpm = qRound(100.0 / 2.54 * pageDPI);
im.setDotsPerMeterY(dpm);
im.setDotsPerMeterX(dpm);