vcl/source/gdi/pdfwriter_impl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit f88bb22cc3cbbc35abf72ec0ce1a4c0bb60ee88c Author: Mark Hung <mark...@gmail.com> AuthorDate: Mon Feb 27 21:32:48 2023 +0800 Commit: Mark Hung <mark...@gmail.com> CommitDate: Mon Mar 13 13:10:35 2023 +0000 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 <mark...@gmail.com> diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index 9a78d6908a58..65af9138cdfd 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);