diff options
author | sgeerken <devnull@localhost> | 2012-07-06 01:28:44 +0200 |
---|---|---|
committer | sgeerken <devnull@localhost> | 2012-07-06 01:28:44 +0200 |
commit | 0c3a5744d317e30bce7b6f067c5c3ed25e6fb063 (patch) | |
tree | 05860660110ed39d527c271eacb6b1f822344336 /dw/style.cc | |
parent | 4253a0888d6154beecc1d64346d0d810dedf5658 (diff) |
Attribute "lang" is evaluated for hyphenation; part of dw:core::style::Style.y
Diffstat (limited to 'dw/style.cc')
-rw-r--r-- | dw/style.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dw/style.cc b/dw/style.cc index a2240a9e..2a1d4088 100644 --- a/dw/style.cc +++ b/dw/style.cc @@ -37,6 +37,7 @@ namespace style { void StyleAttrs::initValues () { x_link = -1; + x_lang[0] = x_lang[1] = 0; x_img = -1; x_tooltip = NULL; textDecoration = TEXT_DECORATION_NONE; @@ -144,6 +145,8 @@ bool StyleAttrs::equals (object::Object *other) { listStyleType == otherAttrs->listStyleType && cursor == otherAttrs->cursor && x_link == otherAttrs->x_link && + x_lang[0] == otherAttrs->x_lang[0] && + x_lang[1] == otherAttrs->x_lang[1] && x_img == otherAttrs->x_img && x_tooltip == otherAttrs->x_tooltip); } @@ -182,6 +185,7 @@ int StyleAttrs::hashValue () { listStyleType + cursor + x_link + + x_lang[0] + x_lang[1] + x_img + (intptr_t) x_tooltip; } @@ -267,6 +271,8 @@ void Style::copyAttrs (StyleAttrs *attrs) listStyleType = attrs->listStyleType; cursor = attrs->cursor; x_link = attrs->x_link; + x_lang[0] = attrs->x_lang[0]; + x_lang[1] = attrs->x_lang[1]; x_img = attrs->x_img; x_tooltip = attrs->x_tooltip; } |