summaryrefslogtreecommitdiff
path: root/starmath/source/symbol.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source/symbol.cxx')
-rw-r--r--starmath/source/symbol.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx
index 7bff8d995d5c..a75b6a912670 100644
--- a/starmath/source/symbol.cxx
+++ b/starmath/source/symbol.cxx
@@ -81,10 +81,14 @@ bool SmSym::IsEqualInUI( const SmSym& rSymbol ) const
m_cChar == rSymbol.m_cChar;
}
-const vcl::Font& SmSym::GetFace() const
+const vcl::Font& SmSym::GetFace(const SmFormat* pFormat) const
{
if (m_aFace.GetFamilyName().isEmpty())
- return SM_MOD()->GetConfig()->GetStandardFormat().GetFont(FNT_MATH);
+ {
+ if (!pFormat)
+ pFormat = &SM_MOD()->GetConfig()->GetStandardFormat();
+ return pFormat->GetFont(FNT_VARIABLE);
+ }
return m_aFace;
}