changeset 545:7789abebb0c8

fix hBorderSpacing and vBorderSpacing
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Mon, 10 Nov 2008 20:28:38 +0100
parents 197fa5e98f9f
children d77627f1d6f6
files src/styleengine.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Mon Nov 10 20:07:48 2008 +0100
+++ b/src/styleengine.cc	Mon Nov 10 20:28:38 2008 +0100
@@ -127,10 +127,10 @@
             attrs->borderWidth.setVal (p->value.intVal);
             break;
          case CssProperty::CSS_PROPERTY_BORDER_SPACING_HORIZONTAL:
-            attrs->borderWidth.setVal (p->value.intVal);
+            attrs->hBorderSpacing = p->value.intVal;
             break;
          case CssProperty::CSS_PROPERTY_BORDER_SPACING_VERTICAL:
-            attrs->borderWidth.setVal (p->value.intVal);
+            attrs->vBorderSpacing = p->value.intVal;
             break;
          case CssProperty::CSS_PROPERTY_COLOR:
             attrs->color = Color::createSimple (layout, p->value.intVal);