Update sprite when gradient colors are swapped

This commit is contained in:
apple502j 2020-05-12 02:38:14 +09:00
parent f035c44697
commit 4d3183a6ab

View file

@ -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;