Layer names should be NStrings

Not sure about this -- maybe they're actually AStrings, in which case
the LayerName constructor also needs to change
This commit is contained in:
Jan Petykiewicz 2018-07-21 13:50:55 -07:00
parent 6cef118534
commit b1844d6b0d

View File

@ -812,7 +812,7 @@ class LayerName(Record):
raise InvalidDataError('Invalid record id for LayerName: ' raise InvalidDataError('Invalid record id for LayerName: '
'{}'.format(record_id)) '{}'.format(record_id))
is_textlayer = (record_id == 12) is_textlayer = (record_id == 12)
nstring = AString.read(stream) nstring = NString.read(stream)
layer_interval = read_interval(stream) layer_interval = read_interval(stream)
type_interval = read_interval(stream) type_interval = read_interval(stream)
record = LayerName(nstring, layer_interval, type_interval, is_textlayer) record = LayerName(nstring, layer_interval, type_interval, is_textlayer)