mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
Fix PCB_TEXT hit test when bounding box is rotated
Fixes https://gitlab.com/kicad/code/kicad/issues/9866
This commit is contained in:
parent
014bad7b28
commit
d0e9d4868c
@ -154,8 +154,8 @@ bool PCB_TEXT::TextHitTest( const EDA_RECT& aRect, bool aContains, int aAccuracy
|
|||||||
|
|
||||||
if( aContains )
|
if( aContains )
|
||||||
return rect.Contains( GetBoundingBox() );
|
return rect.Contains( GetBoundingBox() );
|
||||||
else
|
|
||||||
return rect.Intersects( GetTextBox(), GetDrawRotation() );
|
return rect.Intersects( GetBoundingBox(), GetDrawRotation() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user