Small bug fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
0b1c443719
commit
33bbfe4b23
@ -1623,7 +1623,7 @@ bool wxResourceReadOneResource(FILE *fd, wxExprDatabase& db, bool *eof, wxResour
|
||||
wxChar *name = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
|
||||
wxGetResourceToken(fd);
|
||||
wxChar *value = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
|
||||
if (wxIsalpha(value[0]))
|
||||
if (wxIsdigit(value[0]))
|
||||
{
|
||||
int val = (int)wxAtol(value);
|
||||
wxResourceAddIdentifier(name, val, table);
|
||||
@ -2704,7 +2704,7 @@ bool wxResourceReadOneResourceString(char *s, wxExprDatabase& db, bool *eof, wxR
|
||||
wxChar *name = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
|
||||
wxGetResourceTokenString(s);
|
||||
wxChar *value = copystring(wxConvCurrent->cMB2WX(wxResourceBuffer));
|
||||
if (wxIsalpha(value[0]))
|
||||
if (wxIsdigit(value[0]))
|
||||
{
|
||||
int val = (int)wxAtol(value);
|
||||
wxResourceAddIdentifier(name, val, table);
|
||||
|
Loading…
Reference in New Issue
Block a user