diff --git a/src/desktop-style.cpp b/src/desktop-style.cpp index 5b2cb8cf42ddd0500a03e7c6eea2c2f496b786ed..2137dc3ed2efa3eba1b1867d99efe75dbb8eab9a 100644 --- a/src/desktop-style.cpp +++ b/src/desktop-style.cpp @@ -152,7 +152,7 @@ sp_desktop_apply_css_recursive(SPObject *o, SPCSSAttr *css, bool skip_lines) } for (auto& child: o->children) { - if (sp_repr_css_property(css, "opacity", nullptr) != nullptr) { + if (sp_repr_css_property(css, "opacity", nullptr) != nullptr && !isTextualItem(o)) { // Unset properties which are accumulating and thus should not be set recursively. // For example, setting opacity 0.5 on a group recursively would result in the visible opacity of 0.25 for an item in the group. SPCSSAttr *css_recurse = sp_repr_css_attr_new();