Fixes a bug where map width was used for height, and the other way around, when scaling a map in the map editor.

This commit is contained in:
Stian Grenborgen 2024-01-14 13:50:05 +01:00
parent 53dc415abe
commit ab4b40c2db
1 changed files with 1 additions and 2 deletions

View File

@ -138,8 +138,7 @@ public class ScaleMapSizeDialog extends FreeColDialog<Dimension> {
Object value = getValue();
if (options.get(0).equals(value)) {
checkFields();
return new Dimension(Integer.parseInt(inputHeight.getText()),
Integer.parseInt(inputWidth.getText()));
return new Dimension(Integer.parseInt(inputWidth.getText()), Integer.parseInt(inputHeight.getText()));
}
return null;
}