fix Lorenzo's bug introduced in rev. 4082

This commit is contained in:
Dick Hollenbeck 2013-04-18 12:03:25 -05:00
parent 20e7d431a6
commit 6001254160
1 changed files with 4 additions and 8 deletions

View File

@ -63,11 +63,10 @@ const wxString pageFmts[] =
_("C 17x22in"), _("C 17x22in"),
_("D 22x34in"), _("D 22x34in"),
_("E 34x44in"), _("E 34x44in"),
_("US Letter 8.5x11in"), _("USLetter 8.5x11in"), // USLetter without space is correct
_("US Legal 8.5x14in"), _("USLegal 8.5x14in"), // USLegal without space is correct
_("US Ledger 11x17in"), _("USLedger 11x17in"), // USLedger without space is correct
_("User (Custom)"), _("User (Custom)"),
wxT("") // end of list
}; };
void EDA_DRAW_FRAME::Process_PageSettings( wxCommandEvent& event ) void EDA_DRAW_FRAME::Process_PageSettings( wxCommandEvent& event )
@ -115,11 +114,8 @@ void DIALOG_PAGES_SETTINGS::initDialog()
// The first shows translated strings, the second contains not translated strings // The first shows translated strings, the second contains not translated strings
m_paperSizeComboBox->Clear(); m_paperSizeComboBox->Clear();
for( unsigned ii = 0; ; ii++ ) for( unsigned ii = 0; ii<DIM(pageFmts); ii++ )
{ {
if( pageFmts[ii].IsEmpty() )
break;
m_pageFmt.Add( pageFmts[ii] ); m_pageFmt.Add( pageFmts[ii] );
m_paperSizeComboBox->Append( wxGetTranslation( pageFmts[ii] ) ); m_paperSizeComboBox->Append( wxGetTranslation( pageFmts[ii] ) );
} }