summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-12-20 10:46:43 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-12-20 10:54:46 +0100
commit40f129a99e691babaf7320cb32dff7ec5c77275c (patch)
tree8de09af93685b4554614cfbbda07faad40a4aad1
parent0e0988cc08269eb125bf6e362b8ddba0c0771296 (diff)
if a bracket pair has no left/right bracket, it needs to explicit (fdo#32636)
-rw-r--r--starmath/source/ooxmlimport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 60fb2304d46c..1cdee7fa65c0 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -346,6 +346,10 @@ OUString SmOoxmlImport::handleD()
closing = STR( " right " ) + closing;
if( separator == STR( "|" )) // plain "|" would be actually "V" (logical or)
separator = STR( " mline " );
+ if( opening.isEmpty())
+ opening = STR( "left none " );
+ if( closing.isEmpty())
+ closing = STR( " right none" );
OUStringBuffer ret;
ret.append( opening );
bool first = true;