aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2019-09-10 18:34:34 -0400
committerBob Zeleznik <zzzman@gmail.com>2019-09-10 18:34:34 -0400
commitbe9562ef9d2ad2675641e6215f1567f7e0b9c0e3 (patch)
tree6b531596777b51fad6872437f39d86fe5929ec89
parent149fa3116cdbb58f2eed144cc0bb90c1b1cd2b2a (diff)
write backgroundColor to data doc
-rw-r--r--src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
index f7c1bedbb..3ebbe0046 100644
--- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
+++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx
@@ -266,8 +266,8 @@ export class CollectionFreeFormView extends CollectionSubView(PanZoomDocument) {
if (!(ruleProvider instanceof Doc)) ruleProvider = this.props.Document;
let col = StrCast(ruleProvider["ruleColor_" + NumCast(newBox.heading)]);
let round = StrCast(ruleProvider["ruleRounding_" + NumCast(newBox.heading)]);
- round && (newBox.borderRounding = round);
- col && (newBox.backgroundColor = col);
+ round && (Doc.GetProto(newBox).borderRounding = round);
+ col && (Doc.GetProto(newBox).backgroundColor = col);
newBox.ruleProvider = ruleProvider;
this.addDocument(newBox, false);
}