vcl/win/gdi/gdiimpl.cxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
New commits: commit 7d9fb56a135b96b13e1c0691663330ee0f23d019 Author: Armin Le Grand <[email protected]> AuthorDate: Fri Jan 11 17:59:59 2019 +0100 Commit: Juergen Funk (CIB) <[email protected]> CommitDate: Fri Mar 15 10:52:54 2019 +0100 tdf#122384 Added isPrinter support to WinSalGraphicsImpl::drawPolyLine As already guessed but not been sure (see 'One more hint' in WinSalGraphicsImpl::drawPolyPolygon) the strange WinGDI transform is also needed when printing for WinSalGraphicsImpl:: drawPolyLine. Reviewed-on: https://gerrit.libreoffice.org/66190 Tested-by: Jenkins Reviewed-by: Armin Le Grand <[email protected]> (cherry picked from commit 6e3c4ae8bca898700cde9caaff43c3a8a61eebc2) §§{JNKCMD:NoBuild}§§ wurde schon getestet Change-Id: I39f89eac0c17e524949221306723a355c6e94a17 Reviewed-on: https://gerrit.libreoffice.org/69296 Reviewed-by: Juergen Funk (CIB) <[email protected]> Tested-by: Juergen Funk (CIB) <[email protected]> diff --git a/vcl/win/gdi/gdiimpl.cxx b/vcl/win/gdi/gdiimpl.cxx index 16fd8128a8e8..8cb8cc27f86c 100644 --- a/vcl/win/gdi/gdiimpl.cxx +++ b/vcl/win/gdi/gdiimpl.cxx @@ -2250,6 +2250,21 @@ bool WinSalGraphicsImpl::drawPolyLine( aGraphics.SetSmoothingMode(Gdiplus::SmoothingModeNone); } + if(mrParent.isPrinter()) + { + // tdf#122384 As metioned above in WinSalGraphicsImpl::drawPolyPolygon + // (look for 'One more hint: This *may* also be needed now in'...). + // See comments in same spot above *uregntly* before doing changes here, + // these comments are *still fully valid* at this place (!) + const Gdiplus::REAL aDpiX(aGraphics.GetDpiX()); + const Gdiplus::REAL aDpiY(aGraphics.GetDpiY()); + + aGraphics.ScaleTransform( + Gdiplus::REAL(100.0) / aDpiX, + Gdiplus::REAL(100.0) / aDpiY, + Gdiplus::MatrixOrderAppend); + } + aGraphics.DrawPath( &aPen, &pSystemDependentData_GraphicsPath->getGraphicsPath()); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
