7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-11 14:20:10 +00:00

Mirror location of textbox.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20021
This commit is contained in:
Jeff Young 2025-02-23 18:54:26 +00:00
parent 1691d8d2b2
commit 562ff37314

View File

@ -84,6 +84,8 @@ int SCH_TEXTBOX::GetLegacyTextMargin() const
void SCH_TEXTBOX::MirrorHorizontally( int aCenter )
{
SCH_SHAPE::MirrorHorizontally( aCenter );
// Text is NOT really mirrored; it just has its justification flipped
if( GetTextAngle() == ANGLE_HORIZONTAL )
{
@ -97,6 +99,8 @@ void SCH_TEXTBOX::MirrorHorizontally( int aCenter )
void SCH_TEXTBOX::MirrorVertically( int aCenter )
{
SCH_SHAPE::MirrorVertically( aCenter );
// Text is NOT really mirrored; it just has its justification flipped
if( GetTextAngle() == ANGLE_VERTICAL )
{