From eb2da27e0834925d449373593fb650db49671adf Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 13 May 2016 13:03:55 +0100 Subject: Resolves: tdf#99556 if the num of arguments is not 1 infer a raw not just if the num of arguments is > 1 Change-Id: If0cae16cc52685315708ac3b2b8456ede7c1a6ce --- starmath/source/mathmlimport.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'starmath/source') diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx index fe7654392744..a5537dd1ba42 100644 --- a/starmath/source/mathmlimport.cxx +++ b/starmath/source/mathmlimport.cxx @@ -794,7 +794,7 @@ void SmXMLEncloseContext_Impl::EndElement() contents are treated as a single "inferred " containing its arguments */ - if (GetSmImport().GetNodeStack().size() - nElementCount > 1) + if (GetSmImport().GetNodeStack().size() - nElementCount != 1) SmXMLRowContext_Impl::EndElement(); } @@ -863,7 +863,7 @@ void SmXMLStyleContext_Impl::EndElement() arguments */ SmNodeStack &rNodeStack = GetSmImport().GetNodeStack(); - if (rNodeStack.size() - nElementCount > 1) + if (rNodeStack.size() - nElementCount != 1) SmXMLRowContext_Impl::EndElement(); aStyleHelper.ApplyAttrs(); } @@ -887,7 +887,7 @@ void SmXMLPaddedContext_Impl::EndElement() contents are treated as a single "inferred " containing its arguments */ - if (GetSmImport().GetNodeStack().size() - nElementCount > 1) + if (GetSmImport().GetNodeStack().size() - nElementCount != 1) SmXMLRowContext_Impl::EndElement(); } @@ -910,7 +910,7 @@ void SmXMLPhantomContext_Impl::EndElement() contents are treated as a single "inferred " containing its arguments */ - if (GetSmImport().GetNodeStack().size() - nElementCount > 1) + if (GetSmImport().GetNodeStack().size() - nElementCount != 1) SmXMLRowContext_Impl::EndElement(); SmToken aToken; @@ -2158,7 +2158,7 @@ void SmXMLSqrtContext_Impl::EndElement() contents are treated as a single "inferred " containing its arguments */ - if (GetSmImport().GetNodeStack().size() - nElementCount > 1) + if (GetSmImport().GetNodeStack().size() - nElementCount != 1) SmXMLRowContext_Impl::EndElement(); SmToken aToken; -- cgit