diff --git a/CHANGELOG.md b/CHANGELOG.md index 94e74844..2fb32cd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The **"Breaking Changes"** listed below are changes that have been made in the d ### Fixed - Fix New Map settings being preserved when switching projects. +- Fix scripting API callback `onMapResized` not triggering. ## [5.0.0] - 2022-10-30 ### Breaking Changes diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3ef1aed9..22a8f80c 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2631,8 +2631,8 @@ void MainWindow::on_pushButton_ChangeDimensions_clicked() QSize newMapDimensions(widthSpinBox->value(), heightSpinBox->value()); QSize newBorderDimensions(bwidthSpinBox->value(), bheightSpinBox->value()); if (oldMapDimensions != newMapDimensions || oldBorderDimensions != newBorderDimensions) { - editor->map->setDimensions(newMapDimensions.width(), newMapDimensions.height(), true); - editor->map->setBorderDimensions(newBorderDimensions.width(), newBorderDimensions.height(), true); + editor->map->setDimensions(newMapDimensions.width(), newMapDimensions.height(), true, true); + editor->map->setBorderDimensions(newBorderDimensions.width(), newBorderDimensions.height(), true, true); editor->map->editHistory.push(new ResizeMap(map, oldMapDimensions, newMapDimensions, oldMetatiles, map->layout->blockdata,