Skip to content

Commit

Permalink
wxGUI: fix setting of user defined window position and size for singl…
Browse files Browse the repository at this point in the history
…e window mode (OSGeo#2619)
  • Loading branch information
tmszi committed Nov 3, 2022
1 parent 4def194 commit 2e266be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gui/wxpython/main_window/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def show_menu_errors(messages):
except Exception:
pass
self.Layout()
self.Fit()
if w <= globalvar.GM_WINDOW_SIZE[0] or h <= globalvar.GM_WINDOW_SIZE[1]:
self.Fit()
else:
self.Layout()
self.Fit()
Expand Down

0 comments on commit 2e266be

Please sign in to comment.