Fix coordinates in crop scene

This commit is contained in:
ArsenArsen 2017-07-27 12:49:29 +02:00
parent 097b6991da
commit eb802a2876
No known key found for this signature in database
GPG Key ID: C631EC9C50708CF4

View File

@ -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)));
});
}