Fix bug in WidgetLoader::fillWidgetWithXmlElementAttributes()

This commit is contained in:
David Capello 2015-02-26 11:05:52 -03:00
parent f3aa6bc2ae
commit 59d10f590e

View File

@ -524,7 +524,7 @@ void WidgetLoader::fillWidgetWithXmlElementAttributes(const TiXmlElement* elem,
widget->noBorderNoChildSpacing();
if (border)
widget->setBorder(gfx::Border(strtol(childspacing, NULL, 10)*guiscale()));
widget->setBorder(gfx::Border(strtol(border, NULL, 10)*guiscale()));
if (childspacing)
widget->child_spacing = strtol(childspacing, NULL, 10)*guiscale();