Handle all non-length units
Statusbar length updates need to handle default with wxASSERT if there is not a specific, handled unit.
This commit is contained in:
parent
d650cca088
commit
7297208119
|
@ -217,7 +217,7 @@ void SCH_BASE_FRAME::UpdateStatusBar()
|
||||||
locformatter = "dx %f dy %f dist %f";
|
locformatter = "dx %f dy %f dist %f";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEGREES:
|
default:
|
||||||
wxASSERT( false );
|
wxASSERT( false );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1043,7 +1043,7 @@ void GERBVIEW_FRAME::UpdateStatusBar()
|
||||||
case INCHES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
case INCHES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
||||||
case MILLIMETRES: formatter = wxT( "r %.5f theta %.1f" ); break;
|
case MILLIMETRES: formatter = wxT( "r %.5f theta %.1f" ); break;
|
||||||
case UNSCALED_UNITS: formatter = wxT( "r %f theta %f" ); break;
|
case UNSCALED_UNITS: formatter = wxT( "r %f theta %f" ); break;
|
||||||
case DEGREES: wxASSERT( false ); break;
|
default: wxASSERT( false ); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
line.Printf( formatter, To_User_Unit( GetUserUnits(), ro ), theta );
|
line.Printf( formatter, To_User_Unit( GetUserUnits(), ro ), theta );
|
||||||
|
@ -1075,7 +1075,7 @@ void GERBVIEW_FRAME::UpdateStatusBar()
|
||||||
relformatter = wxT( "dx %f dy %f dist %f" );
|
relformatter = wxT( "dx %f dy %f dist %f" );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEGREES:
|
default:
|
||||||
wxASSERT( false );
|
wxASSERT( false );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -591,7 +591,7 @@ void PL_EDITOR_FRAME::UpdateStatusBar()
|
||||||
case INCHES: SetStatusText( _("inches"), 6 ); break;
|
case INCHES: SetStatusText( _("inches"), 6 ); break;
|
||||||
case MILLIMETRES: SetStatusText( _("mm"), 6 ); break;
|
case MILLIMETRES: SetStatusText( _("mm"), 6 ); break;
|
||||||
case UNSCALED_UNITS: SetStatusText( wxEmptyString, 6 ); break;
|
case UNSCALED_UNITS: SetStatusText( wxEmptyString, 6 ); break;
|
||||||
case DEGREES: wxASSERT( false ); break;
|
default: wxASSERT( false ); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString line;
|
wxString line;
|
||||||
|
|
|
@ -629,7 +629,7 @@ void PCB_BASE_FRAME::UpdateStatusBar()
|
||||||
case INCHES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
case INCHES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
||||||
case MILLIMETRES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
case MILLIMETRES: formatter = wxT( "r %.6f theta %.1f" ); break;
|
||||||
case UNSCALED_UNITS: formatter = wxT( "r %f theta %f" ); break;
|
case UNSCALED_UNITS: formatter = wxT( "r %f theta %f" ); break;
|
||||||
case DEGREES: wxASSERT( false ); break;
|
default: wxASSERT( false ); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
line.Printf( formatter, To_User_Unit( GetUserUnits(), ro ), theta );
|
line.Printf( formatter, To_User_Unit( GetUserUnits(), ro ), theta );
|
||||||
|
@ -662,7 +662,7 @@ void PCB_BASE_FRAME::UpdateStatusBar()
|
||||||
locformatter = "dx %f dy %f dist %f";
|
locformatter = "dx %f dy %f dist %f";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case DEGREES:
|
default:
|
||||||
wxASSERT( false );
|
wxASSERT( false );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue