From eb802a28761c66f57ccd56248d05070b8dbc24b4 Mon Sep 17 00:00:00 2001 From: ArsenArsen Date: Thu, 27 Jul 2017 12:49:29 +0200 Subject: [PATCH] Fix coordinates in crop scene --- cropeditor/cropscene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cropeditor/cropscene.cpp b/cropeditor/cropscene.cpp index fcee0b8..24a8743 100644 --- a/cropeditor/cropscene.cpp +++ b/cropeditor/cropscene.cpp @@ -151,7 +151,7 @@ CropScene::CropScene(QObject *parent, QPixmap pixmap) updateMag(); auto screen = QApplication::primaryScreen(); int w = screen->geometry().width(); - widget->setPos((w - widget->boundingRect().width()) / 2, screen->geometry().top() + 100); + widget->setPos(views()[0]->mapToScene(QPoint((w - widget->boundingRect().width()) / 2, screen->geometry().y() + 100))); }); }