|
|
|
@ -822,6 +822,10 @@ UBGraphicsScene* UBSvgSubsetAdaptor::UBSvgSubsetReader::loadScene() |
|
|
|
|
UBGraphicsPDFItem* pdfItem = pdfItemFromPDF(); |
|
|
|
|
if (pdfItem) |
|
|
|
|
{ |
|
|
|
|
QDesktopWidget* desktop = UBApplication::desktop(); |
|
|
|
|
qreal currentDpi = (desktop->physicalDpiX() + desktop->physicalDpiY()) / 2; |
|
|
|
|
qreal pdfScale = UBSettings::settings()->pageDpi->get().toReal()/currentDpi; |
|
|
|
|
pdfItem->setScale(pdfScale); |
|
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsMovable, true); |
|
|
|
|
pdfItem->setFlag(QGraphicsItem::ItemIsSelectable, true); |
|
|
|
|
|
|
|
|
|