diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-11-30 11:48:45 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-11-30 16:11:43 +0100 |
commit | f28c6c55ad902a399cc7a7f8cb426c09da5ba58c (patch) | |
tree | 7501a4b51ddb045ef4081a3fa83fa082774ec8cd /starmath | |
parent | 8168d6d3df3245fc776152ccc46bfa28c5ea7d32 (diff) |
warn about unknown m:chr in m:acc
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 5c4b90e346a8..3f884e5123fe 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -142,18 +142,19 @@ OUString SmOoxmlImport::readOMathArg() OUString SmOoxmlImport::handleAcc() { stream.ensureOpeningTag( M_TOKEN( acc )); - OUString acc; + sal_Unicode accChr = 0x302; if( XmlStream::Tag accPr = stream.checkOpeningTag( M_TOKEN( accPr ))) { if( XmlStream::Tag chr = stream.checkOpeningTag( M_TOKEN( chr ))) { - acc = chr.attribute( M_TOKEN( val )); + accChr = chr.attribute( M_TOKEN( val ), accChr ); stream.ensureClosingTag( M_TOKEN( chr )); } stream.ensureClosingTag( M_TOKEN( accPr )); } // see aTokenTable in parse.cxx - switch( acc.isEmpty() ? sal_Unicode( MS_ACUTE ) : acc[ 0 ] ) + OUString acc; + switch( accChr ) { case MS_CHECK: acc = STR( "check" ); @@ -193,6 +194,7 @@ OUString SmOoxmlImport::handleAcc() break; default: acc = STR( "acute" ); + fprintf( stderr, "Unknown m:chr in m:acc '%d'\n", accChr ); break; } OUString e = handleE(); |