fixed internal compiler error and proper translation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -202,9 +202,22 @@ void wxGenericFontDialog::CreateWidgets(void)
|
||||
static char *styles[] = { "Normal", "Italic", "Slant" };
|
||||
static char *weights[] = { "Normal", "Light", "Bold" };
|
||||
*/
|
||||
static wxString families[] = { "Roman", "Decorative", "Modern", "Script", "Swiss" };
|
||||
static wxString styles[] = { "Normal", "Italic", "Slant" };
|
||||
static wxString weights[] = { "Normal", "Light", "Bold" };
|
||||
|
||||
wxString
|
||||
*families = new wxString[5],
|
||||
*styles = new wxString[3],
|
||||
*weights = new wxString[3];
|
||||
families[0] = _("Roman");
|
||||
families[1] = _("Decorative");
|
||||
families[2] = _("Modern");
|
||||
families[3] = _("Script");
|
||||
families[4] = _("Swiss" );
|
||||
styles[0] = _("Normal");
|
||||
styles[1] = _("Italic");
|
||||
styles[2] = _("Slant");
|
||||
weights[0] = _("Normal");
|
||||
weights[1] = _("Light");
|
||||
weights[2] = _("Bold");
|
||||
|
||||
int x=-1;
|
||||
int y=40;
|
||||
@@ -219,7 +232,7 @@ void wxGenericFontDialog::CreateWidgets(void)
|
||||
y+=3; //NL mod
|
||||
#endif
|
||||
|
||||
wxString pointSizes[40];
|
||||
wxString *pointSizes = new wxString[40];
|
||||
int i;
|
||||
for ( i = 0; i < 40; i++)
|
||||
{
|
||||
@@ -263,6 +276,10 @@ void wxGenericFontDialog::CreateWidgets(void)
|
||||
|
||||
wxEndBusyCursor();
|
||||
|
||||
delete[] families;
|
||||
delete[] styles;
|
||||
delete[] weights;
|
||||
delete[] pointSizes;
|
||||
m_useEvents = TRUE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user