Browse Source

Textbox in symbols: fix incorrect position of the box when printing.

Fixes #11884
https://gitlab.com/kicad/code/kicad/issues/11884
7.0
jean-pierre charras 3 years ago
parent
commit
de45e2b1fd
  1. 4
      eeschema/lib_textbox.cpp

4
eeschema/lib_textbox.cpp

@ -229,7 +229,9 @@ void LIB_TEXTBOX::print( const RENDER_SETTINGS* aSettings, const VECTOR2I& aOffs
STROKE_PARAMS::Stroke( shape, lineStyle, penWidth, aSettings,
[&]( const VECTOR2I& a, const VECTOR2I& b )
{
GRLine( DC, a.x, a.y, b.x, b.y, penWidth, color );
VECTOR2I pts = aTransform.TransformCoordinate( a ) + aOffset;
VECTOR2I pte = aTransform.TransformCoordinate( b ) + aOffset;
GRLine( DC, pts.x, pts.y, pte.x, pte.y, penWidth, color );
} );
}

Loading…
Cancel
Save