4362: [XML] Cannot import url styled text on note

svn: r16600
This commit is contained in:
Doug Blank 2011-02-11 13:35:21 +00:00
parent 444fa5dd2f
commit 82d4f8cb54

View File

@ -1374,8 +1374,7 @@ class GrampsParser(UpdateCallback):
Styled text tag in notes (v1.4.0 onwards).
"""
tagtype = gen.lib.StyledTextTagType()
tagtype.set_from_xml_str(attrs['name'])
tagtype.set_from_xml_str(attrs['name'].lower())
try:
val = attrs['value']
tagvalue = gen.lib.StyledTextTagType.STYLE_TYPE[int(tagtype)](val)