diff options
author | Jonathan Clark <jonathan@libreoffice.org> | 2024-06-07 02:36:22 -0600 |
---|---|---|
committer | Jonathan Clark <jonathan@libreoffice.org> | 2024-06-10 17:11:32 +0200 |
commit | 976b16b1c6ad6e6eaded7a9fb24388c4512e21e2 (patch) | |
tree | 7d2e8793f6a2436ab67497463b2417dc952eaba7 /toolkit | |
parent | 2b68dadb846dac063421ed975abecafbd120cbac (diff) |
tdf#152024 Diacritics cut off at top and bottom of paragraph
This change fixes issues causing Writer to clip paragraphs at the ascent
of the top line, and descent of the last line, of a paragraph. This
issue caused certain diacritics to render incompletely, or not at all.
Change-Id: I99a3a25335f8b1d798fc8a55ff42d5c78749fca4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168557
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxfont.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxfont.cxx b/toolkit/source/awt/vclxfont.cxx index 47fad780d73b..32a42dec7579 100644 --- a/toolkit/source/awt/vclxfont.cxx +++ b/toolkit/source/awt/vclxfont.cxx @@ -153,7 +153,7 @@ sal_Int32 VCLXFont::getStringWidthArray( const OUString& str, css::uno::Sequence vcl::Font aOldFont = pOutDev->GetFont(); pOutDev->SetFont( maFont ); KernArray aDXA; - nRet = basegfx::fround(pOutDev->GetTextArray(str, &aDXA)); + nRet = basegfx::fround(pOutDev->GetTextArray(str, &aDXA).nWidth); rDXArray.realloc(aDXA.size()); sal_Int32* pArray = rDXArray.getArray(); for (size_t i = 0, nLen = aDXA.size(); i < nLen; ++i) |