3D viewer: fix mirroring issue for texts in flipped footprints.
This commit is contained in:
parent
ccc11c8ed8
commit
e28ead71b6
|
@ -187,9 +187,13 @@ void MODULE::TransformGraphicShapesWithClearanceToPolygonSet(
|
||||||
{
|
{
|
||||||
TEXTE_MODULE *textmod = texts[ii];
|
TEXTE_MODULE *textmod = texts[ii];
|
||||||
s_textWidth = textmod->GetThickness() + ( 2 * aInflateValue );
|
s_textWidth = textmod->GetThickness() + ( 2 * aInflateValue );
|
||||||
|
wxSize size = textmod->GetSize();
|
||||||
|
|
||||||
|
if( textmod->IsMirrored() )
|
||||||
|
NEGATE( size.x );
|
||||||
|
|
||||||
DrawGraphicText( NULL, NULL, textmod->GetTextPosition(), BLACK,
|
DrawGraphicText( NULL, NULL, textmod->GetTextPosition(), BLACK,
|
||||||
textmod->GetText(), textmod->GetDrawRotation(),
|
textmod->GetText(), textmod->GetDrawRotation(), size,
|
||||||
textmod->GetSize(),
|
|
||||||
textmod->GetHorizJustify(), textmod->GetVertJustify(),
|
textmod->GetHorizJustify(), textmod->GetVertJustify(),
|
||||||
textmod->GetThickness(), textmod->IsItalic(),
|
textmod->GetThickness(), textmod->IsItalic(),
|
||||||
true, addTextSegmToPoly );
|
true, addTextSegmToPoly );
|
||||||
|
|
Loading…
Reference in New Issue