mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-11 02:15:38 -05:00
Fix regression in resize layout popup
This commit is contained in:
@@ -133,10 +133,11 @@ void ResizeLayoutPopup::setupLayoutView() {
|
||||
this->scene->setValidRect(rect);
|
||||
this->outline->setRect(rect);
|
||||
|
||||
// Rect may have changed, ensure spinners reflect final rect size.
|
||||
const QSignalBlocker b_Width(this->ui->spinBox_width);
|
||||
const QSignalBlocker b_Height(this->ui->spinBox_height);
|
||||
this->ui->spinBox_width->setValue(metatilesWide);
|
||||
this->ui->spinBox_height->setValue(metatilesTall);
|
||||
this->ui->spinBox_width->setValue(rect.width() / Metatile::pixelWidth());
|
||||
this->ui->spinBox_height->setValue(rect.height() / Metatile::pixelHeight());
|
||||
});
|
||||
scene->addItem(outline);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user