Commit 74c99302 authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Better support empty sequences, move to 1.0.4

parent 5c208bc0
......@@ -32,7 +32,9 @@ Author: Maxime Perrotin
LICENSE: LGPL - see LICENSE file
CHANGELOG:,
CHANGELOG:
1.1.4 - Better support empty sequences
1.1.3 - Use Opengeode logo when simulating SDL systems
1.1.2 - Call manually the startup function of the SDL model
1.1.0 - Add support for custom user widgets
......
......@@ -16,7 +16,7 @@
__author__ = "Maxime Perrotin"
__license__ = "LGPLv3"
__version__ = "1.1.3"
__version__ = "1.1.4"
__url__ = "http://taste.tuxfamily.org"
import sys
......@@ -361,8 +361,13 @@ class asn1Editor(QTreeView):
return resValue
else: # single elements (all but SeqOF, Choice, Sequence)
row = root.row()
value = self.model.item(row, 3).text()
asnType = self.model.item(row, 1).text()
try:
value = self.model.item(row, 3).text()
asnType = self.model.item(row, 1).text()
except AttributeError:
# Empty SEQUENCEs elems contain nothing
value = ''
asnType = None
if asnType == 'INTEGER':
value = int(value)
elif asnType == 'REAL':
......
Markdown is supported
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