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:
parent
d98fc85a83
commit
d504a8bdd0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue