Handle mirroring for multiple selections containing text or labels.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15936
This commit is contained in:
parent
ca8cb5a206
commit
298b309ebe
|
@ -88,24 +88,18 @@ void SCH_TEXT::FlipHJustify()
|
||||||
void SCH_TEXT::MirrorHorizontally( int aCenter )
|
void SCH_TEXT::MirrorHorizontally( int aCenter )
|
||||||
{
|
{
|
||||||
if( GetTextAngle() == ANGLE_HORIZONTAL )
|
if( GetTextAngle() == ANGLE_HORIZONTAL )
|
||||||
{
|
|
||||||
FlipHJustify();
|
FlipHJustify();
|
||||||
|
|
||||||
if( GetHorizJustify() == GR_TEXT_H_ALIGN_LEFT || GetHorizJustify() == GR_TEXT_H_ALIGN_RIGHT )
|
|
||||||
SetTextX( MIRRORVAL( GetTextPos().x, aCenter ) );
|
SetTextX( MIRRORVAL( GetTextPos().x, aCenter ) );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SCH_TEXT::MirrorVertically( int aCenter )
|
void SCH_TEXT::MirrorVertically( int aCenter )
|
||||||
{
|
{
|
||||||
if( GetTextAngle() == ANGLE_VERTICAL )
|
if( GetTextAngle() == ANGLE_VERTICAL )
|
||||||
{
|
|
||||||
FlipHJustify();
|
FlipHJustify();
|
||||||
|
|
||||||
if( GetHorizJustify() == GR_TEXT_H_ALIGN_LEFT || GetHorizJustify() == GR_TEXT_H_ALIGN_RIGHT )
|
|
||||||
SetTextY( MIRRORVAL( GetTextPos().y, aCenter ) );
|
SetTextY( MIRRORVAL( GetTextPos().y, aCenter ) );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue