Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c4fe51b

Browse files
committed
Fixed restoring of main window size
Thanks to Felix Genicio Calvo for spotting this bug.
1 parent 492a857 commit c4fe51b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tiled/mapeditor/MapEditor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ public void windowClosing(WindowEvent event) {
237237

238238
final Preferences mainDialogPrefs = prefs.node("dialog/main");
239239
final int width = mainDialogPrefs.getInt("width", APP_WIDTH);
240-
final int height = mainDialogPrefs.getInt("width", APP_HEIGHT);
240+
final int height = mainDialogPrefs.getInt("height", APP_HEIGHT);
241241
appFrame.setSize(width, height);
242242

243243
setCurrentMap(null);

0 commit comments

Comments
 (0)