From be9562ef9d2ad2675641e6215f1567f7e0b9c0e3 Mon Sep 17 00:00:00 2001 From: Bob Zeleznik Date: Tue, 10 Sep 2019 18:34:34 -0400 Subject: write backgroundColor to data doc --- .../views/collections/collectionFreeForm/CollectionFreeFormView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3-70-g09d2