| commit | f32f7d0d34cb4fcc5acd94cdf91cbd7b2f7f98ab | [log] |
|---|---|---|
| author | Mark Hung <marklh9@gmail.com> | Mon Feb 27 21:32:48 2023 +0800 |
| committer | Xisco Fauli <xiscofauli@libreoffice.org> | Mon Mar 13 19:23:08 2023 +0000 |
| tree | 6a82ee68008a3f20cd7f7102f1397dd7a8b3c34e | |
| parent | bc5f50127c8869c0fc2b2d46970385570b5e999e [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> (cherry picked from commit f88bb22cc3cbbc35abf72ec0ce1a4c0bb60ee88c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148768 Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index b0ef56e..2689464 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -6909,7 +6909,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);