aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-09-20 23:08:14 -0400
committerbobzel <zzzman@gmail.com>2021-09-20 23:08:14 -0400
commit6cdfb4f5cfa4233b0879ad638524dba777471895 (patch)
treed9a4b310c9f1a3c944ba4089b97fec08ed45ea6e /src
parente295f6694bed9a3a35a0858c8f17745ef1506f51 (diff)
fixed retrieving fillColor for color button menu option.
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/button/FontIconBox.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/button/FontIconBox.tsx b/src/client/views/nodes/button/FontIconBox.tsx
index 9d1ef937f..adcac0aef 100644
--- a/src/client/views/nodes/button/FontIconBox.tsx
+++ b/src/client/views/nodes/button/FontIconBox.tsx
@@ -579,7 +579,6 @@ Scripting.addGlobal(function setBackgroundColor(color?: string, checkResult?: bo
return "#FFFFFF";
}
}
- if (selected?.type === DocumentType.INK) selected.fillColor = color;
if (selected) selected._backgroundColor = color;
Doc.UserDoc()._fontColor = color;
});
@@ -823,7 +822,7 @@ Scripting.addGlobal(function setFillColor(color?: string, checkResult?: boolean)
const selected = SelectionManager.Docs().lastElement();
if (checkResult) {
if (selected?.type === DocumentType.INK) {
- return StrCast(selected._backgroundColor);
+ return StrCast(selected.fillColor);
}
return ActiveFillColor();
}