Fix non optimal position of net name and pad name for pads with shape offset: the texts are now (like in legacy canvas) centered to the pad shape, not the pad position.
This commit is contained in:
parent
f1c9f284fd
commit
e795dafc4b
|
@ -490,7 +490,8 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
|
|||
m_gal->SetIsStroke( true );
|
||||
m_gal->SetIsFill( false );
|
||||
|
||||
VECTOR2D textpos( 0.0, 0.0 );
|
||||
// Set the text position to the pad shape position (the pad position is not the best place)
|
||||
VECTOR2D textpos( double( aPad->ShapePos().x ), double( aPad->ShapePos().y ) );
|
||||
|
||||
// Divide the space, to display both pad numbers and netnames
|
||||
// and set the Y text position to display 2 lines
|
||||
|
|
Loading…
Reference in New Issue