Pcbnew: fix incorrect displayed value in polar coordinates.

Fixes #6771
https://gitlab.com/kicad/code/kicad/issues/6771
This commit is contained in:
jean-pierre charras 2020-12-17 11:21:24 +01:00
parent b425889a1a
commit dcbe2413cc
1 changed files with 2 additions and 3 deletions

View File

@ -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 );
}