| commit | f88bb22cc3cbbc35abf72ec0ce1a4c0bb60ee88c | [log] |
|---|---|---|
| author | Mark Hung <marklh9@gmail.com> | Mon Feb 27 21:32:48 2023 +0800 |
| committer | Mark Hung <marklh9@gmail.com> | Mon Mar 13 13:10:35 2023 +0000 |
| tree | 6869d1092e6e39241ab4b67f5b28ed7855a83bd5 | |
| parent | 2cb2e2b9c1d55bbbc639997ca30fd6b57a81bfb2 [diff] |
tdf#115321, tdf#139065 render emphasismark for pdf export. Fix the logical mistake: it rendered emphasis mark only for spaces - that is excatly opposite to what we want. Change-Id: Id478af269c6cf8ab9a9e1413d19f9b3a3451d59d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147916 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 9a78d69..65af913 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -7001,7 +7001,7 @@ void PDFWriterImpl::drawLayout( SalLayout& rLayout, const OUString& rText, bool nIndex = 0; while (rLayout.GetNextGlyph(&pGlyph, aPos, nIndex)) { if (pGlyph->IsSpacing()) if (!pGlyph->IsSpacing()) { DevicePoint aAdjOffset(aOffset.X(), aOffset.Y()); aAdjOffset.adjustX((pGlyph->newWidth() - aEmphasisMark.GetWidth()) / 2);