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

New commits:
commit a82faa49ead9b0d43a7fa90488945dc3a7e87b60
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Fri Aug 26 00:16:51 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Fri Aug 26 12:33:24 2022 +0200

    retain precision until the end
    
    Change-Id: I1986bb5a5d9445ae4efaa54f0a65a35a0a5d5335
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138855
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/gdi/pdfwriter_impl.cxx 
b/vcl/source/gdi/pdfwriter_impl.cxx
index 8c2d0e0b10fb..5e93cff34bb0 100644
--- a/vcl/source/gdi/pdfwriter_impl.cxx
+++ b/vcl/source/gdi/pdfwriter_impl.cxx
@@ -5965,7 +5965,7 @@ void PDFWriterImpl::drawVerticalGlyphs(
             fSkewA = -fSkewB;
             fSkewB = 0.0;
         }
-        aDeltaPos += PixelToLogic( Point( static_cast<int>(nXOffset / 
fXScale), 0 ) ) - PixelToLogic( Point() );
+        aDeltaPos += SubPixelToLogic(DevicePoint(nXOffset / fXScale, 0), 
false) - SubPixelToLogic(DevicePoint(), true);
         if( i < rGlyphs.size()-1 )
         // #i120627# the text on the Y axis is reversed when export ppt file 
to PDF format
         {

Reply via email to