mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Fix QA result based on updated behavior
This commit is contained in:
parent
7b4f4540b4
commit
77a2330a33
@ -96,11 +96,10 @@ BOOST_AUTO_TEST_CASE( AlignWithOriginOffset )
|
|||||||
helper.SetOrigin( VECTOR2I( 25, 25 ) );
|
helper.SetOrigin( VECTOR2I( 25, 25 ) );
|
||||||
helper.SetGridSnapping( true );
|
helper.SetGridSnapping( true );
|
||||||
|
|
||||||
// When grid has an origin offset, alignment should still work from (0,0) reference
|
// When grid has an origin offset, alignment should work from the new reference point
|
||||||
// AlignGrid doesn't use origin, just pure grid alignment
|
|
||||||
VECTOR2I aligned = helper.AlignGrid( VECTOR2I( 149, 251 ) );
|
VECTOR2I aligned = helper.AlignGrid( VECTOR2I( 149, 251 ) );
|
||||||
BOOST_CHECK_EQUAL( aligned.x, 100 );
|
BOOST_CHECK_EQUAL( aligned.x, 125 );
|
||||||
BOOST_CHECK_EQUAL( aligned.y, 300 );
|
BOOST_CHECK_EQUAL( aligned.y, 225 );
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE( AlignWithAuxiliaryAxes )
|
BOOST_AUTO_TEST_CASE( AlignWithAuxiliaryAxes )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user