drawinglayer/source/processor2d/hittestprocessor2d.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 9ee472895bbebe7d753e37879ec987b07cd11a2c Author: Sarper Akdemir <sarper.akdemir.ext...@allotropia.de> AuthorDate: Fri Jul 21 15:29:17 2023 +0300 Commit: Thorsten Behrens <thorsten.behr...@allotropia.de> CommitDate: Mon Jul 24 09:26:35 2023 +0200 related tdf#152992: fix minor logic error in hittestprocessor2d Fix logic errors I've missed previously on (2c8c436c4a8546276e285dd18f3f7ded091a2c4e) where initialization of aDiscreteHalfLineVector wasn't adapted to new HitTolerancePerAxis in PRIMITIVE2D_ID_POLYGONSTROKEPRIMITIVE2D & PRIMITIVE2D_ID_POLYGONWAVEPRIMITIVE2D. Change-Id: I5d9f0347e489301d7e4f06f98f4a9c9d1385d6d9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154717 Tested-by: Jenkins Reviewed-by: Sarper Akdemir <sarper.akdemir.ext...@allotropia.de> (cherry picked from commit 3dc2f4f0d2a8a7c51d01d29fd55ca9e4e6926596) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154706 Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de> diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx index 77b396f60f5d..b760b24f845a 100644 --- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx +++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx @@ -291,7 +291,7 @@ namespace drawinglayer::processor2d { // for all other B2DLINEJOIN_* do a hairline HitTest with expanded tolerance const basegfx::B2DVector aDiscreteHalfLineVector(getViewInformation2D().getObjectToViewTransformation() - * basegfx::B2DVector(rLineAttribute.getWidth() * 0.5, 0.0)); + * basegfx::B2DVector(rLineAttribute.getWidth() * 0.5, rLineAttribute.getWidth() * 0.5)); mbHit = checkHairlineHitWithTolerance( rPolygonCandidate.getB2DPolygon(), getDiscreteHitTolerance() + aDiscreteHalfLineVector); @@ -328,7 +328,7 @@ namespace drawinglayer::processor2d } const basegfx::B2DVector aDiscreteHalfLineVector(getViewInformation2D().getObjectToViewTransformation() - * basegfx::B2DVector(fLogicHitTolerance, 0.0)); + * basegfx::B2DVector(fLogicHitTolerance, fLogicHitTolerance)); mbHit = checkHairlineHitWithTolerance( rPolygonCandidate.getB2DPolygon(),