Merge branch 'develop' into fillSpace

This commit is contained in:
DD Liu 2020-05-14 14:21:35 -04:00
commit 2cb1f1a62d

View file

@ -91,10 +91,11 @@ class FillColorIndicator extends React.Component {
} }
handleSwap () { handleSwap () {
if (getSelectedLeafItems().length) { if (getSelectedLeafItems().length) {
swapColorsInSelection( const isDifferent = swapColorsInSelection(
isBitmap(this.props.format), isBitmap(this.props.format),
this.props.textEditTarget); this.props.textEditTarget);
this.props.setSelectedItems(); this.props.setSelectedItems();
this._hasChanged = this._hasChanged || isDifferent;
} else { } else {
let color1 = this.props.fillColor; let color1 = this.props.fillColor;
let color2 = this.props.fillColor2; let color2 = this.props.fillColor2;