From 59d10f590eff3ea1815a531c641ce852abf08b3d Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 26 Feb 2015 11:05:52 -0300 Subject: [PATCH] Fix bug in WidgetLoader::fillWidgetWithXmlElementAttributes() --- src/app/widget_loader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/widget_loader.cpp b/src/app/widget_loader.cpp index 76eb8631d..660de936d 100644 --- a/src/app/widget_loader.cpp +++ b/src/app/widget_loader.cpp @@ -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();