diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 9a987d450..45398102b 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -6175,6 +6175,12 @@ namespace NLGUI { const CStyleParams current = _Style; + if (inherit) + { + style.Underlined = current.Underlined; + style.StrikeThrough = current.StrikeThrough; + } + float tmpf; TStyle styles = parseStyle(styleString); TStyle::iterator it; @@ -6396,11 +6402,6 @@ namespace NLGUI style.GlobalColor = b; } } - if (inherit) - { - style.Underlined = current.Underlined || style.Underlined; - style.StrikeThrough = current.StrikeThrough || style.StrikeThrough; - } } // ***************************************************************************