PCB_PARSER::parsePCB_TEXTBOX(): fix bug when a TCB_TEXTBOX was rotated:
the textbox was rotated, but thai is incorrect: the polygon coordinates are good, and must be not rotated: only the text angle must be set.
This commit is contained in:
parent
4d1f9f6fb9
commit
70c05109a0
|
@ -3226,7 +3226,9 @@ PCB_TEXTBOX* PCB_PARSER::parsePCB_TEXTBOX( BOARD_ITEM* aParent )
|
|||
switch( token )
|
||||
{
|
||||
case T_angle:
|
||||
textbox->SetTextAngle( EDA_ANGLE( parseDouble( "text box angle" ), DEGREES_T ) );
|
||||
// Set the angle of the text only, the coordinates of the box (a polygon) are
|
||||
// already at the right position, and must not be rotated
|
||||
textbox->EDA_TEXT::SetTextAngle( EDA_ANGLE( parseDouble( "text box angle" ), DEGREES_T ) );
|
||||
NeedRIGHT();
|
||||
break;
|
||||
|
||||
|
|
|
@ -1845,8 +1845,8 @@ void PCB_PLUGIN::format( const PCB_TEXTBOX* aTextBox, int aNestLevel ) const
|
|||
{
|
||||
FOOTPRINT* parentFP = aTextBox->GetParentFootprint();
|
||||
|
||||
m_out->Print( aNestLevel, "(%s_text_box%s %s\n",
|
||||
parentFP ? "fp" : "gr",
|
||||
m_out->Print( aNestLevel, "(%s%s %s\n",
|
||||
parentFP ? "fp_text_box" : "gr_text_box",
|
||||
aTextBox->IsLocked() ? " locked" : "",
|
||||
m_out->Quotew( aTextBox->GetText() ).c_str() );
|
||||
|
||||
|
|
Loading…
Reference in New Issue