diff options
author | Kurt Zenker <kz@openoffice.org> | 2004-12-08 16:19:22 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2004-12-08 16:19:22 +0000 |
commit | cb0e06f218ee87de884fc6635ac3011ce93f68e6 (patch) | |
tree | d90223936eb8eddd61e8c3aab6b6f13a4bf44385 /starmath/source/rect.cxx | |
parent | 9b452d2ac62f58a49108f449a68f7869858d1f67 (diff) |
INTEGRATION: CWS tl06 (1.12.50); FILE MERGED
2004/12/06 13:30:39 tl 1.12.50.1: #i38470# workaround for bug 112783 implemented
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r-- | starmath/source/rect.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 94aee7e4c0ff..439272c50861 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rect.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: obo $ $Date: 2004-08-11 15:08:22 $ + * last change: $Author: kz $ $Date: 2004-12-08 17:19:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -784,8 +784,13 @@ BOOL SmGetGlyphBoundRect(const OutputDevice &rDev, // use scale factor when calling GetTextBoundRect to counter // negative effects from antialiasing which may otherwise result // in significant incorrect bounding rectangles for some charcters. - long nScaleFactor = 16; Size aFntSize = aFnt.GetSize(); + + // HDU: workaround to avoid HUGE font sizes (#112783#) + long nScaleFactor = 1; + while( aFntSize.Height() > 400 * nScaleFactor ) + nScaleFactor *= 2; + aFnt.SetSize( Size( aFntSize.Width() * nScaleFactor, aFntSize.Height() * nScaleFactor ) ); pGlyphDev->SetFont(aFnt); |