[GRASS-SVN] r57186 - grass/trunk/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 17 03:08:51 PDT 2013
Author: mmetz
Date: 2013-07-17 03:08:51 -0700 (Wed, 17 Jul 2013)
New Revision: 57186
Modified:
grass/trunk/gui/wxpython/gui_core/preferences.py
Log:
wxGUI: do not save zero size window size
Modified: grass/trunk/gui/wxpython/gui_core/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/preferences.py 2013-07-17 09:20:50 UTC (rev 57185)
+++ grass/trunk/gui/wxpython/gui_core/preferences.py 2013-07-17 10:08:51 UTC (rev 57186)
@@ -238,7 +238,9 @@
pos = mapdisp.GetPosition()
size = mapdisp.GetSize()
- dim += ',%d,%d,%d,%d' % (pos[0], pos[1], size[0], size[1])
+ # window size must be larger than zero
+ if size[0] > 0 and size[1] > 0:
+ dim += ',%d,%d,%d,%d' % (pos[0], pos[1], size[0], size[1])
self.settings.Set(group = 'general', key = 'defWindowPos', subkey = 'dim', value = dim)
else:
More information about the grass-commit
mailing list