fill tool fix

This commit is contained in:
Hugh Bord 2021-12-06 18:08:57 +10:00
parent 960739eada
commit fed6f972f2

View File

@ -1410,15 +1410,15 @@ export default {
const newColor = {};
const current = {};
// if (this.canBg) {
newColor.bg = this.currentBg;
current.bg = this.asciiBlockAtXy.bg;
// }
// if (this.canFg) {
// newColor.fg = this.currentFg;
// current.fg = this.asciiBlockAtXy.fg;
// }
if (this.canBg) {
newColor.bg = this.currentBg;
current.bg = this.asciiBlockAtXy.bg;
}
//
if (this.canFg) {
newColor.fg = this.currentFg;
current.fg = this.asciiBlockAtXy.fg;
}
// If the newColor is same as the existing
// Then return the original image.