From 4d3183a6abe4649539b59a1f4864a87a74dda9f4 Mon Sep 17 00:00:00 2001 From: apple502j <33279053+apple502j@users.noreply.github.com> Date: Tue, 12 May 2020 02:38:14 +0900 Subject: [PATCH] Update sprite when gradient colors are swapped --- src/containers/fill-color-indicator.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/fill-color-indicator.jsx b/src/containers/fill-color-indicator.jsx index b3848428..2bdbb454 100644 --- a/src/containers/fill-color-indicator.jsx +++ b/src/containers/fill-color-indicator.jsx @@ -91,10 +91,11 @@ class FillColorIndicator extends React.Component { } handleSwap () { if (getSelectedLeafItems().length) { - swapColorsInSelection( + const isDifferent = swapColorsInSelection( isBitmap(this.props.format), this.props.textEditTarget); this.props.setSelectedItems(); + this._hasChanged = this._hasChanged || isDifferent; } else { let color1 = this.props.fillColor; let color2 = this.props.fillColor2;