diff --git a/cropeditor/cropscene.cpp b/cropeditor/cropscene.cpp index 2a76ddd..33a6b49 100644 --- a/cropeditor/cropscene.cpp +++ b/cropeditor/cropscene.cpp @@ -151,7 +151,8 @@ CropScene::CropScene(QObject *parent, QPixmap pixmap) updateMag(); auto screen = QApplication::primaryScreen(); int w = screen->geometry().width(); - widget->setPos(views()[0]->mapToScene(QPoint((w - widget->boundingRect().width()) / 2, screen->geometry().y() + 100))); + widget->setPos(views()[0]->mapToScene( + QPoint(screen->geometry().x() + (w - widget->boundingRect().width()) / 2, screen->geometry().y() + 100))); }); }