diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-22 10:01:13 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-08-22 16:30:33 +0200 |
commit | 36ab04a0e4fd6d8b8747a8e435a7143f4e3b10dd (patch) | |
tree | 9d5b25f11f46f56b685f0a6660191aadd557d07a /editeng | |
parent | ffaed5cae29d6bb14faf870cb935ccd3c35d4a3c (diff) |
smallcaps: we only use width, so drop the height
Change-Id: I860e5ff246cb21749a73deb83cdd2e26c0ad4b3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155936
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/svxfont.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/editeng/source/items/svxfont.cxx b/editeng/source/items/svxfont.cxx index 08bae76685ed..8e660cd4b44e 100644 --- a/editeng/source/items/svxfont.cxx +++ b/editeng/source/items/svxfont.cxx @@ -824,7 +824,6 @@ void SvxDoDrawCapital::Do( const OUString &_rTxt, const sal_Int32 _nIdx, const sal_Int32 _nLen, const bool bUpper) { sal_uInt8 nProp = 0; - Size aPartSize; // Set the desired font FontLineStyle eUnder = pFont->GetUnderline(); @@ -840,9 +839,7 @@ void SvxDoDrawCapital::Do( const OUString &_rTxt, const sal_Int32 _nIdx, } pFont->SetPhysFont(*pOut); - aPartSize.setWidth( pOut->GetTextWidth( _rTxt, _nIdx, _nLen ) ); - aPartSize.setHeight( pOut->GetTextHeight() ); - tools::Long nWidth = aPartSize.Width(); + tools::Long nWidth = pOut->GetTextWidth( _rTxt, _nIdx, _nLen ); if ( nKern ) { aPos.AdjustX(nKern/2); |