st_theme_node_lookup_color(): Handle inheritance only once

parent 874487f3
......@@ -555,10 +555,8 @@ st_theme_node_lookup_color (StThemeNode *node,
}
else if (result == VALUE_INHERIT)
{
if (node->parent_node)
return st_theme_node_lookup_color (node->parent_node, property_name, inherit, color);
else
break;
inherit = TRUE;
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment