Check for empty "widths"

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2004-05-17 17:02:59 +00:00
parent 64179ebc42
commit fd9e9adb16
2 changed files with 2 additions and 2 deletions

View File

@@ -48,7 +48,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];

View File

@@ -48,7 +48,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];