diff options
author | crupest <crupest@outlook.com> | 2020-12-24 23:36:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-24 23:36:44 +0800 |
commit | 253fcf881d04d0c86236e4cf0067f08eea39f051 (patch) | |
tree | 489eeac466f92474b3d51c49a164607fdabcf478 /src/ui | |
parent | 04e3fee3fc584c2c7562b29c375cedcf020bcbc6 (diff) | |
download | cru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.gz cru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.bz2 cru-253fcf881d04d0c86236e4cf0067f08eea39f051.zip |
...
Diffstat (limited to 'src/ui')
-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(); } |