eeschema: Formatting grid table
Missing breaks could cause grid table to return odd text for bad values. With the breaks, odd values are flagged for fixing
This commit is contained in:
parent
d03b08a03f
commit
dff92f915c
|
@ -291,31 +291,45 @@ wxString FIELDS_GRID_TABLE<T>::GetValue( int aRow, int aCol )
|
||||||
return field.GetText();
|
return field.GetText();
|
||||||
|
|
||||||
case FDC_H_ALIGN:
|
case FDC_H_ALIGN:
|
||||||
switch( field.GetHorizJustify() )
|
switch ( field.GetHorizJustify() )
|
||||||
{
|
{
|
||||||
case GR_TEXT_HJUSTIFY_LEFT: return _( "Left" );
|
case GR_TEXT_HJUSTIFY_LEFT:
|
||||||
case GR_TEXT_HJUSTIFY_CENTER: return _( "Center" );
|
return _( "Left" );
|
||||||
case GR_TEXT_HJUSTIFY_RIGHT: return _( "Right" );
|
case GR_TEXT_HJUSTIFY_CENTER:
|
||||||
|
return _( "Center" );
|
||||||
|
case GR_TEXT_HJUSTIFY_RIGHT:
|
||||||
|
return _( "Right" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case FDC_V_ALIGN:
|
case FDC_V_ALIGN:
|
||||||
switch( field.GetVertJustify() )
|
switch ( field.GetVertJustify() )
|
||||||
{
|
{
|
||||||
case GR_TEXT_VJUSTIFY_TOP: return _( "Top" );
|
case GR_TEXT_VJUSTIFY_TOP:
|
||||||
case GR_TEXT_VJUSTIFY_CENTER: return _( "Center" );
|
return _( "Top" );
|
||||||
case GR_TEXT_VJUSTIFY_BOTTOM: return _( "Bottom" );
|
case GR_TEXT_VJUSTIFY_CENTER:
|
||||||
|
return _( "Center" );
|
||||||
|
case GR_TEXT_VJUSTIFY_BOTTOM:
|
||||||
|
return _( "Bottom" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case FDC_TEXT_SIZE:
|
case FDC_TEXT_SIZE:
|
||||||
return StringFromValue( m_userUnits, field.GetTextSize().GetHeight(), true, true );
|
return StringFromValue( m_userUnits, field.GetTextSize().GetHeight(), true, true );
|
||||||
|
|
||||||
case FDC_ORIENTATION:
|
case FDC_ORIENTATION:
|
||||||
switch( (int) field.GetTextAngle() )
|
switch ( (int) field.GetTextAngle() )
|
||||||
{
|
{
|
||||||
case TEXT_ANGLE_HORIZ: return _( "Horizontal" );
|
case TEXT_ANGLE_HORIZ:
|
||||||
case TEXT_ANGLE_VERT: return _( "Vertical" );
|
return _( "Horizontal" );
|
||||||
|
case TEXT_ANGLE_VERT:
|
||||||
|
return _( "Vertical" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
case FDC_POSX:
|
case FDC_POSX:
|
||||||
return StringFromValue( m_userUnits, field.GetTextPos().x, true );
|
return StringFromValue( m_userUnits, field.GetTextPos().x, true );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue