diff options
author | Kurt Zenker <kz@openoffice.org> | 2003-10-15 09:06:42 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2003-10-15 09:06:42 +0000 |
commit | 8e540ac5d7f623ad24426f117060a6f1320224c4 (patch) | |
tree | 6dba775e104a04849fc4efbe00e0d249ce116259 /starmath/source/rect.cxx | |
parent | 64c3c78e51e3e0e4e7368fd5c308f002deec04b7 (diff) |
INTEGRATION: CWS extleading (1.10.110); FILE MERGED
2003/07/07 07:28:49 fme 1.10.110.1: #110641# Feature - External leading
Diffstat (limited to 'starmath/source/rect.cxx')
-rw-r--r-- | starmath/source/rect.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/rect.cxx b/starmath/source/rect.cxx index 97ac2f2aff2a..f9928a0923da 100644 --- a/starmath/source/rect.cxx +++ b/starmath/source/rect.cxx @@ -2,9 +2,9 @@ * * $RCSfile: rect.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: tl $ $Date: 2002-11-06 12:39:17 $ + * last change: $Author: kz $ $Date: 2003-10-15 10:06:42 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -212,7 +212,7 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat, // workaround for printer fonts with very small (possible 0 or even // negative(!)) leading - if (aFM.GetLeading() < 5 && rDev.GetOutDevType() == OUTDEV_PRINTER) + if (aFM.GetIntLeading() < 5 && rDev.GetOutDevType() == OUTDEV_PRINTER) { OutputDevice *pWindow = Application::GetDefaultDevice(); @@ -221,7 +221,7 @@ void SmRect::BuildRect(const OutputDevice &rDev, const SmFormat *pFormat, pWindow->SetMapMode(rDev.GetMapMode()); pWindow->SetFont(rDev.GetFontMetric()); - long nDelta = pWindow->GetFontMetric().GetLeading(); + long nDelta = pWindow->GetFontMetric().GetIntLeading(); if (nDelta == 0) { // dieser Wert entspricht etwa einem Leading von 80 bei einer // Fonthhe von 422 (12pt) |