From 253fcf881d04d0c86236e4cf0067f08eea39f051 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 24 Dec 2020 23:36:44 +0800 Subject: ... --- src/ui/style/StyleRuleSet.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ui/style/StyleRuleSet.cpp') diff --git a/src/ui/style/StyleRuleSet.cpp b/src/ui/style/StyleRuleSet.cpp index 24b88af9..537d1956 100644 --- a/src/ui/style/StyleRuleSet.cpp +++ b/src/ui/style/StyleRuleSet.cpp @@ -36,8 +36,9 @@ void StyleRuleSet::RemoveStyleRule(gsl::index index, gsl::index count) { RaiseChangeEvent(); } -void StyleRuleSet::Set(const StyleRuleSet& other) { +void StyleRuleSet::Set(const StyleRuleSet& other, bool set_parent) { rules_ = other.rules_; + if (set_parent) parent_ = other.parent_; RaiseChangeEvent(); } -- cgit v1.2.3