Commit 817f9e28 authored by Antonio Rojas's avatar Antonio Rojas

Set pixmap device pixel ratio before sending it to kimageannotator

Otherwise it will double its size after being processed if using 2x screen scaling
parent 2d62ef12
......@@ -308,7 +308,9 @@ void KSWidget::setProgress(double progress)
void KSWidget::showAnnotator()
{
mStack->setCurrentIndex(1);
mAnnotator->loadImage(ExportManager::instance()->pixmap());
QPixmap px = ExportManager::instance()->pixmap();
px.setDevicePixelRatio(qApp->devicePixelRatio());
mAnnotator->loadImage(px);
}
void KSWidget::hideAnnotator()
......
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