summaryrefslogtreecommitdiffstats
path: root/starmath/source/rect.cxx
diff options
context:
space:
mode:
authorThomas Lange [tl] <tl@openoffice.org>2010-02-12 13:57:35 +0100
committerThomas Lange [tl] <tl@openoffice.org>2010-02-12 13:57:35 +0100
commit8523afb0a718df3218b9aa27380a62310744e3cc (patch)
treec47f5dc0b09c825f8655a215c4dd79fe0fe45f92 /starmath/source/rect.cxx
parentcws tl74: #i107721# further changes to new thesaurus dialog (diff)
parentCWS-TOOLING: integrate CWS swunolocking1 (diff)
downloadcore-8523afb0a718df3218b9aa27380a62310744e3cc.tar.gz
core-8523afb0a718df3218b9aa27380a62310744e3cc.zip
cws tl74: merge
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 1a2a6a408a59..f2d0d9a2528e 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();