Small bug I just noticed

This commit is contained in:
ArsenArsen 2017-06-22 17:47:49 +02:00
parent df00c3e3a6
commit bb692e852e

View File

@ -20,6 +20,7 @@ CropEditor::CropEditor(QPixmap *image, QObject *parent) : QObject(parent) {
scene->setSceneRect(image->rect()); scene->setSceneRect(image->rect());
view->show(); view->show();
view->resize(pixmapItem->pixmap().width(), pixmapItem->pixmap().height()); view->resize(pixmapItem->pixmap().width(), pixmapItem->pixmap().height());
view->move(0, 0);
connect(scene, &CropScene::closedWithRect, this, &CropEditor::crop); connect(scene, &CropScene::closedWithRect, this, &CropEditor::crop);
} }