Make sure text caches get updated on move.
Fixes https://gitlab.com/kicad/code/kicad/issues/11319
This commit is contained in:
parent
0bdbfe1446
commit
aee5ff8935
|
@ -178,6 +178,13 @@ bool FP_TEXTBOX::HitTest( const EDA_RECT& aRect, bool aContained, int aAccuracy
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void FP_TEXTBOX::Move( const VECTOR2I& aMoveVector )
|
||||||
|
{
|
||||||
|
FP_SHAPE::Move( aMoveVector );
|
||||||
|
EDA_TEXT::Offset( aMoveVector );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void FP_TEXTBOX::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle )
|
void FP_TEXTBOX::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle )
|
||||||
{
|
{
|
||||||
FP_SHAPE::Rotate( aRotCentre, aAngle );
|
FP_SHAPE::Rotate( aRotCentre, aAngle );
|
||||||
|
|
|
@ -79,6 +79,8 @@ public:
|
||||||
|
|
||||||
std::vector<VECTOR2I> GetAnchorAndOppositeCorner() const;
|
std::vector<VECTOR2I> GetAnchorAndOppositeCorner() const;
|
||||||
|
|
||||||
|
void Move( const VECTOR2I& aMoveVector ) override;
|
||||||
|
|
||||||
/// Rotate text, in footprint editor
|
/// Rotate text, in footprint editor
|
||||||
/// (for instance in footprint rotation transform)
|
/// (for instance in footprint rotation transform)
|
||||||
void Rotate( const VECTOR2I& aOffset, const EDA_ANGLE& aAngle ) override;
|
void Rotate( const VECTOR2I& aOffset, const EDA_ANGLE& aAngle ) override;
|
||||||
|
|
|
@ -247,6 +247,13 @@ void PCB_TEXTBOX::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void PCB_TEXTBOX::Move( const VECTOR2I& aMoveVector )
|
||||||
|
{
|
||||||
|
PCB_SHAPE::Move( aMoveVector );
|
||||||
|
EDA_TEXT::Offset( aMoveVector );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void PCB_TEXTBOX::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle )
|
void PCB_TEXTBOX::Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle )
|
||||||
{
|
{
|
||||||
PCB_SHAPE::Rotate( aRotCentre, aAngle );
|
PCB_SHAPE::Rotate( aRotCentre, aAngle );
|
||||||
|
|
|
@ -79,6 +79,8 @@ public:
|
||||||
|
|
||||||
std::vector<VECTOR2I> GetAnchorAndOppositeCorner() const;
|
std::vector<VECTOR2I> GetAnchorAndOppositeCorner() const;
|
||||||
|
|
||||||
|
void Move( const VECTOR2I& aMoveVector ) override;
|
||||||
|
|
||||||
void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override;
|
void Rotate( const VECTOR2I& aRotCentre, const EDA_ANGLE& aAngle ) override;
|
||||||
|
|
||||||
void Flip( const VECTOR2I& aCentre, bool aFlipLeftRight ) override;
|
void Flip( const VECTOR2I& aCentre, bool aFlipLeftRight ) override;
|
||||||
|
|
Loading…
Reference in New Issue