Fix for patches allowing value/reference text rotation in multiples of 90 deg.

The wrong version of the patches had been applied. This commit applies some
code changes that had gotten lost.

    See lp:613616 (https://bugs.launchpad.net/kicad/+bug/613616).
This commit is contained in:
Kevin Cozens 2017-11-13 02:31:31 -05:00 committed by Wayne Stambaugh
parent d98fc85a83
commit d504a8bdd0
2 changed files with 1 additions and 7 deletions

View File

@ -330,13 +330,6 @@ double TEXTE_MODULE::GetDrawRotation() const
NORMALIZE_ANGLE_POS( rotation );
// For angle = 0 .. 360 deg
while( rotation > 2700 )
rotation -= 3600;
while( rotation < -900 )
rotation += 1800;
return rotation;
}

View File

@ -150,6 +150,7 @@ bool DialogEditModuleText::TransferDataToWindow()
PutValueInLocalUnits( *m_TxtWidthCtlr, m_currentText->GetThickness() );
double text_orient = m_currentText->GetTextAngle();
text_orient = NormalizeAngle180( text_orient );
if( !m_currentText->IsVisible() )
m_Show->SetSelection( 1 );