[GRASS-SVN] r73232 - grass/branches/releasebranch_7_4/gui/wxpython/gui_core
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Sep 3 07:45:58 PDT 2018
Author: annakrat
Date: 2018-09-03 07:45:58 -0700 (Mon, 03 Sep 2018)
New Revision: 73232
Modified:
grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py
Log:
wxGUI: wx4 doesn't have Image.GetHandlers, fixes #3617 (merged from releasbranch 76)
Modified: grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py 2018-09-03 14:44:03 UTC (rev 73231)
+++ grass/branches/releasebranch_7_4/gui/wxpython/gui_core/dialogs.py 2018-09-03 14:45:58 UTC (rev 73232)
@@ -1831,8 +1831,11 @@
"""Get list of supported image handlers"""
lext = list()
ltype = list()
- for h in image.GetHandlers():
- lext.append(h.GetExtension())
+ try:
+ for h in image.GetHandlers():
+ lext.append(h.GetExtension())
+ except AttributeError:
+ lext = {'png', 'gif', 'jpg', 'pcx', 'pnm', 'tif', 'xpm'}
filetype = ''
if 'png' in lext:
More information about the grass-commit
mailing list