summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-24 16:09:42 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-24 18:43:59 +0100
commit3236f5bea9b995922a59b43818f8f92cccde9956 (patch)
tree499220a3d6cc37ae26286029507aaa9b1df1ef57 /starmath
parent199c95b3e9f4fc0f13cb0423b7f64779e4dfad9f (diff)
oox::AttributeList is actually not that usable outside
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/ooxmlimport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 746bb6e41791..0880ac36ca60 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -100,7 +100,7 @@ OUString SmOoxmlImport::handleAcc()
{
if( XmlStream::Tag chr = stream.checkOpeningTag( M_TOKEN( chr )))
{
- acc = chr.attributes.getString( M_TOKEN( val ), STR( "" ));
+ acc = chr.attributes.attribute( M_TOKEN( val ));
stream.ensureClosingTag( M_TOKEN( chr ));
}
stream.ensureClosingTag( M_TOKEN( accPr ));
@@ -197,7 +197,7 @@ OUString SmOoxmlImport::readR()
XmlStream::Tag rtag = stream.ensureOpeningTag( M_TOKEN( t ));
// TODO bail out if failure?
OUString text = rtag.text;
- if( !rtag.attributes.getBool( OOX_TOKEN( xml, space ), false ))
+ if( rtag.attributes.attribute( OOX_TOKEN( xml, space )) != STR( "preserve" ))
text = text.trim();
stream.ensureClosingTag( M_TOKEN( t ));
stream.ensureClosingTag( M_TOKEN( r ));