Kaydet (Commit) b6a3d056 authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Katarina Behrens

tdf#125506 tdf#121241: only use rObjectToDevice if needed

Use same logic as in vcl/unx/generic/gdi/gdiimpl.cxx

Reviewed-on: https://gerrit.libreoffice.org/73319
Tested-by: Jenkins
Reviewed-by: 's avatarXisco Faulí <xiscofauli@libreoffice.org>
(cherry picked from commit 93477d1a)
Reviewed-on: https://gerrit.libreoffice.org/73328

Change-Id: I7a7a8c4b3355f5621ba1603939a3757cd03e7777
Reviewed-on: https://gerrit.libreoffice.org/73396
Tested-by: Jenkins
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 901a356a
...@@ -864,8 +864,10 @@ bool AquaSalGraphics::drawPolyLine( ...@@ -864,8 +864,10 @@ bool AquaSalGraphics::drawPolyLine(
return false; return false;
#endif #endif
// Transform to DeviceCoordinates, get DeviceLineWidth, execute PixelSnapHairline // need to check/handle LineWidth when ObjectToDevice transformation is used
const basegfx::B2DVector aLineWidths(rObjectToDevice * rLineWidths); const basegfx::B2DVector aDeviceLineWidths(rObjectToDevice * rLineWidths);
const bool bCorrectLineWidth(aDeviceLineWidths.getX() < 1.0 && rLineWidths.getX() >= 1.0);
const basegfx::B2DVector aLineWidths(bCorrectLineWidth ? rLineWidths : aDeviceLineWidths);
// #i101491# Aqua does not support B2DLineJoin::NONE; return false to use // #i101491# Aqua does not support B2DLineJoin::NONE; return false to use
// the fallback (own geometry preparation) // the fallback (own geometry preparation)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment