diff options
Diffstat (limited to 'starmath/source/node.cxx')
-rw-r--r-- | starmath/source/node.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx index 7a9d42bd4fe1..1572d5f8e67e 100644 --- a/starmath/source/node.cxx +++ b/starmath/source/node.cxx @@ -2186,7 +2186,10 @@ void SmSpecialNode::Prepare(const SmFormat &rFormat, const SmDocShell &rDocShell sal_UCS4 cChar = pSym->GetCharacter(); OUString aTmp( &cChar, 1 ); SetText( aTmp ); - GetFont() = pSym->GetFace(); + if (pSym->GetFace().GetFamilyName().isEmpty()) + GetFont() = rFormat.GetFont(FNT_VARIABLE); + else + GetFont() = pSym->GetFace(); } else { |