diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/style/StyleRuleSet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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(); } |