summaryrefslogtreecommitdiffstats
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2009-11-12 15:30:38 +0100
committerThomas Lange [tl] <tl@openoffice.org>2009-11-12 15:30:38 +0100
commita05cd16e2ae2cd433465088e97eb0291d4f99d80 (patch)
tree9993b959908d69c89063d34a739f560a759e432c /starmath/source/rect.cxx
parentCWS-TOOLING: integrate CWS oooimprovement5_DEV300 (diff)
downloadcore-a05cd16e2ae2cd433465088e97eb0291d4f99d80.tar.gz
core-a05cd16e2ae2cd433465088e97eb0291d4f99d80.zip
tl76: #i106815#: Math related changes because of the new OpenSymbol font
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r--starmath/source/rect.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx
index 0718be8ffd37..94d0761d7fce 100644
--- a/starmath/source/rect.cxx
+++ b/starmath/source/rect.cxx
@@ -150,8 +150,7 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat,
aSize = Size(rDev.GetTextWidth(rText), rDev.GetTextHeight());
const FontMetric aFM (rDev.GetFontMetric());
- BOOL bIsMath = aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH ) ||
- aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH2 );
+ BOOL bIsMath = aFM.GetName().EqualsIgnoreCaseAscii( FONTNAME_MATH );
BOOL bAllowSmaller = bIsMath && !SmIsMathAlpha(rText);
const long nFontHeight = rDev.GetFont().GetSize().Height();