Browse Source

3D viewer: fix mirroring issue for texts in flipped footprints.

pull/1/head
jean-pierre charras 12 years ago
parent
commit
47e5026cfe
  1. 8
      pcbnew/board_items_to_polygon_shape_transform.cpp

8
pcbnew/board_items_to_polygon_shape_transform.cpp

@ -187,9 +187,13 @@ void MODULE::TransformGraphicShapesWithClearanceToPolygonSet(
{
TEXTE_MODULE *textmod = texts[ii];
s_textWidth = textmod->GetThickness() + ( 2 * aInflateValue );
wxSize size = textmod->GetSize();
if( textmod->IsMirrored() )
NEGATE( size.x );
DrawGraphicText( NULL, NULL, textmod->GetTextPosition(), BLACK,
textmod->GetText(), textmod->GetDrawRotation(),
textmod->GetSize(),
textmod->GetText(), textmod->GetDrawRotation(), size,
textmod->GetHorizJustify(), textmod->GetVertJustify(),
textmod->GetThickness(), textmod->IsItalic(),
true, addTextSegmToPoly );

Loading…
Cancel
Save