From 77a2330a332ce6b78ea08ac3d25387d56605a12e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 31 Aug 2025 15:52:38 -0700 Subject: [PATCH] Fix QA result based on updated behavior --- qa/tests/common/test_grid_helper.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/qa/tests/common/test_grid_helper.cpp b/qa/tests/common/test_grid_helper.cpp index 35ff6d64e0..f832fdeb41 100644 --- a/qa/tests/common/test_grid_helper.cpp +++ b/qa/tests/common/test_grid_helper.cpp @@ -96,11 +96,10 @@ BOOST_AUTO_TEST_CASE( AlignWithOriginOffset ) helper.SetOrigin( VECTOR2I( 25, 25 ) ); helper.SetGridSnapping( true ); - // When grid has an origin offset, alignment should still work from (0,0) reference - // AlignGrid doesn't use origin, just pure grid alignment + // When grid has an origin offset, alignment should work from the new reference point VECTOR2I aligned = helper.AlignGrid( VECTOR2I( 149, 251 ) ); - BOOST_CHECK_EQUAL( aligned.x, 100 ); - BOOST_CHECK_EQUAL( aligned.y, 300 ); + BOOST_CHECK_EQUAL( aligned.x, 125 ); + BOOST_CHECK_EQUAL( aligned.y, 225 ); } BOOST_AUTO_TEST_CASE( AlignWithAuxiliaryAxes )