diff options
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathml/mathmlimport.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/starmath/source/mathml/mathmlimport.cxx b/starmath/source/mathml/mathmlimport.cxx index 57787dc5404a..33eb25b9b8d7 100644 --- a/starmath/source/mathml/mathmlimport.cxx +++ b/starmath/source/mathml/mathmlimport.cxx @@ -694,23 +694,23 @@ void SmXMLContext_Helper::ApplyAttrs() } // If not known, not implemented yet. Giving up. } - if (!sFontFamily.isEmpty()) - { - if (sFontFamily.equalsIgnoreAsciiCase(GetXMLToken(XML_FIXED))) - aToken.eType = TFIXED; - else if (sFontFamily.equalsIgnoreAsciiCase("sans")) - aToken.eType = TSANS; - else if (sFontFamily.equalsIgnoreAsciiCase("serif")) - aToken.eType = TSERIF; - else //Just give up, we need to extend our font mechanism to be - //more general - return; + if (sFontFamily.isEmpty()) + return; - aToken.aText = sFontFamily; - std::unique_ptr<SmFontNode> pFontNode(new SmFontNode(aToken)); - pFontNode->SetSubNodes(nullptr, popOrZero(rNodeStack)); - rNodeStack.push_front(std::move(pFontNode)); - } + if (sFontFamily.equalsIgnoreAsciiCase(GetXMLToken(XML_FIXED))) + aToken.eType = TFIXED; + else if (sFontFamily.equalsIgnoreAsciiCase("sans")) + aToken.eType = TSANS; + else if (sFontFamily.equalsIgnoreAsciiCase("serif")) + aToken.eType = TSERIF; + else //Just give up, we need to extend our font mechanism to be + //more general + return; + + aToken.aText = sFontFamily; + std::unique_ptr<SmFontNode> pFontNode(new SmFontNode(aToken)); + pFontNode->SetSubNodes(nullptr, popOrZero(rNodeStack)); + rNodeStack.push_front(std::move(pFontNode)); } namespace |