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);