aboutsummaryrefslogtreecommitdiff
path: root/src/ui/style
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-24 23:36:44 +0800
committercrupest <crupest@outlook.com>2020-12-24 23:36:44 +0800
commit253fcf881d04d0c86236e4cf0067f08eea39f051 (patch)
tree489eeac466f92474b3d51c49a164607fdabcf478 /src/ui/style
parent04e3fee3fc584c2c7562b29c375cedcf020bcbc6 (diff)
downloadcru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.gz
cru-253fcf881d04d0c86236e4cf0067f08eea39f051.tar.bz2
cru-253fcf881d04d0c86236e4cf0067f08eea39f051.zip
...
Diffstat (limited to 'src/ui/style')
-rw-r--r--src/ui/style/StyleRuleSet.cpp3
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();
}