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:
jean-pierre charras 2016-05-28 12:53:29 +02:00
parent f1c9f284fd
commit e795dafc4b
1 changed files with 2 additions and 1 deletions

View File

@ -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