diff options
Diffstat (limited to 'dw/style.cc')
-rw-r--r-- | dw/style.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc index 30597af2..48f98ef8 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -46,6 +46,7 @@ void StyleAttrs::initValues () valign = VALIGN_BASELINE; backgroundColor = NULL; width = height = lineHeight = LENGTH_AUTO; + textIndent = 0; margin.setVal (0); borderWidth.setVal (0); padding.setVal (0); @@ -120,6 +121,7 @@ bool StyleAttrs::equals (object::Object *other) { width == otherAttrs->width && height == otherAttrs->height && lineHeight == otherAttrs->lineHeight && + textIndent == otherAttrs->textIndent && margin.equals (&otherAttrs->margin) && borderWidth.equals (&otherAttrs->borderWidth) && padding.equals (&otherAttrs->padding) && @@ -155,6 +157,7 @@ int StyleAttrs::hashValue () { width + height + lineHeight + + textIndent + margin.hashValue () + borderWidth.hashValue () + padding.hashValue () + @@ -243,6 +246,7 @@ void Style::copyAttrs (StyleAttrs *attrs) width = attrs->width; height = attrs->height; lineHeight = attrs->lineHeight; + textIndent = attrs->textIndent; margin = attrs->margin; borderWidth = attrs->borderWidth; padding = attrs->padding; |