vcl/source/gdi/pdfwriter_impl.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f32f7d0d34cb4fcc5acd94cdf91cbd7b2f7f98ab
Author:     Mark Hung <mark...@gmail.com>
AuthorDate: Mon Feb 27 21:32:48 2023 +0800
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Mon Mar 13 19:23:08 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>
    (cherry picked from commit f88bb22cc3cbbc35abf72ec0ce1a4c0bb60ee88c)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148768
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index b0ef56e64511..268946426990 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);

Reply via email to