Check for empty "widths"
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@27317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,7 +46,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
|
||||
int fields = GetLong(wxT("fields"), 1);
|
||||
wxString widths = GetParamValue(wxT("widths"));
|
||||
|
||||
if(fields > 1)
|
||||
if (fields > 1 && !widths.IsEmpty())
|
||||
{
|
||||
int *width = new int[fields];
|
||||
|
||||
|
@@ -46,7 +46,7 @@ wxObject *wxStatusBarXmlHandler::DoCreateResource()
|
||||
int fields = GetLong(wxT("fields"), 1);
|
||||
wxString widths = GetParamValue(wxT("widths"));
|
||||
|
||||
if(fields > 1)
|
||||
if (fields > 1 && !widths.IsEmpty())
|
||||
{
|
||||
int *width = new int[fields];
|
||||
|
||||
|
Reference in New Issue
Block a user