Pcbnew: fix incorrect displayed value in polar coordinates.
Fixes #6771 https://gitlab.com/kicad/code/kicad/issues/6771
This commit is contained in:
parent
b425889a1a
commit
dcbe2413cc
|
@ -518,9 +518,8 @@ void PCB_BASE_FRAME::UpdateStatusBar()
|
|||
double theta = RAD2DEG( atan2( -dy, dx ) );
|
||||
double ro = hypot( dx, dy );
|
||||
|
||||
line.Printf( wxT( "r %s theta %s" ),
|
||||
MessageTextFromValue( GetUserUnits(), ro, false ),
|
||||
MessageTextFromValue( EDA_UNITS::DEGREES, theta, false ) );
|
||||
line.Printf( wxT( "r %s theta %.3f" ),
|
||||
MessageTextFromValue( GetUserUnits(), ro, false ), theta );
|
||||
|
||||
SetStatusText( line, 3 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue