diff options
| author | bob <bcz@cs.brown.edu> | 2019-05-31 18:18:09 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-05-31 18:18:09 -0400 |
| commit | e277337aa2d8bc9528d4b512f64492113ab551f2 (patch) | |
| tree | 47ac10369f1770a26217b6d89cbe7ea237095938 /src/client/views/InkingControl.tsx | |
| parent | d1b0f462ced168f3a9ac5d007ba1219e98a3b6cf (diff) | |
| parent | e83c2a88303ae6d994a0ac2e84214947cac4d96d (diff) | |
Merge branch 'master' into stackingviewsandmore
Diffstat (limited to 'src/client/views/InkingControl.tsx')
| -rw-r--r-- | src/client/views/InkingControl.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/InkingControl.tsx b/src/client/views/InkingControl.tsx index 17d4a1e49..d456f531f 100644 --- a/src/client/views/InkingControl.tsx +++ b/src/client/views/InkingControl.tsx @@ -35,9 +35,7 @@ export class InkingControl extends React.Component { @action switchColor = (color: ColorResult): void => { this._selectedColor = color.hex; - SelectionManager.SelectedDocuments().forEach(doc => - doc.props.ContainingCollectionView && Doc.SetOnPrototype(doc.props.Document, "backgroundColor", color.hex) - ); + SelectionManager.SelectedDocuments().forEach(doc => Doc.GetProto(doc.props.Document).backgroundColor = color.hex); } @action |
