Pcbnew: fix incorrect position of cached text shapes when moving a footprint.
when moving a footprint, the position of texts living in FP_TEXT_BOX was not updated when the text shape was cached (non Kicad fonts). From master branch. Fixes #14452 https://gitlab.com/kicad/code/kicad/issues/14452
This commit is contained in:
parent
0d744a4e74
commit
a7a5f20d1c
|
@ -1700,13 +1700,20 @@ void FOOTPRINT::SetPosition( const VECTOR2I& aPos )
|
|||
switch( item->Type() )
|
||||
{
|
||||
case PCB_FP_SHAPE_T:
|
||||
case PCB_FP_TEXTBOX_T:
|
||||
{
|
||||
FP_SHAPE* shape = static_cast<FP_SHAPE*>( item );
|
||||
shape->SetDrawCoord();
|
||||
break;
|
||||
}
|
||||
|
||||
case PCB_FP_TEXTBOX_T:
|
||||
{
|
||||
FP_TEXTBOX* textb = static_cast<FP_TEXTBOX*>( item );
|
||||
textb->SetDrawCoord();
|
||||
textb->ClearRenderCache();
|
||||
break;
|
||||
}
|
||||
|
||||
case PCB_FP_TEXT_T:
|
||||
{
|
||||
FP_TEXT* text = static_cast<FP_TEXT*>( item );
|
||||
|
|
Loading…
Reference in New Issue