Commit e4e62f2d authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Fix update of asn1 constants in dictionary

parent 29742eea
......@@ -142,7 +142,10 @@ The background pattern was downloaded from www.subtlepatterns.com
Changelog
=========
1.5.16 (11/2016)
1.5.18 (11/2016)
- Fix parsing of ASN.1 constants that use an annonymous inner type
1.5.17 (11/2016)
- Fixed issue with initialization of generated code in state aggregations
1.5.16 (11/2016)
......
......@@ -138,7 +138,7 @@ except ImportError:
__all__ = ['opengeode', 'SDL_Scene', 'SDL_View', 'parse']
__version__ = '1.5.17'
__version__ = '1.5.18'
if hasattr(sys, 'frozen'):
# Detect if we are running on Windows (py2exe-generated)
......@@ -2380,8 +2380,10 @@ class OG_MainWindow(QtGui.QMainWindow, object):
item = self.datadict.topLevelItem(1)
item.takeChildren()
for name, sort in ast.asn1_constants.viewitems():
QtGui.QTreeWidgetItem(item, [name.replace('-', '_'),
sort.type.ReferencedTypeName])
sortname = sort.type.ReferencedTypeName \
if sort.type.kind.startswith('Reference') \
else sort.type.kind[:-4]
QtGui.QTreeWidgetItem(item, [name.replace('-', '_'), sortname])
self.datadict.resizeColumnToContents(0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment