Skip to content

Commit

Permalink
Fixed restoring of main window size
Browse files Browse the repository at this point in the history
Thanks to Felix Genicio Calvo for spotting this bug.
  • Loading branch information
bjorn committed Jul 7, 2009
1 parent 492a857 commit c4fe51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tiled/mapeditor/MapEditor.java
Expand Up @@ -237,7 +237,7 @@ public void windowClosing(WindowEvent event) {

final Preferences mainDialogPrefs = prefs.node("dialog/main");
final int width = mainDialogPrefs.getInt("width", APP_WIDTH);
final int height = mainDialogPrefs.getInt("width", APP_HEIGHT);
final int height = mainDialogPrefs.getInt("height", APP_HEIGHT);
appFrame.setSize(width, height);

setCurrentMap(null);
Expand Down

0 comments on commit c4fe51b

Please sign in to comment.