fix bug in fillBySelection

This commit is contained in:
bkmartinjr
2018-05-30 09:03:03 -07:00
parent 92dfc5f2ee
commit a0c6e3102b
+2 -1
View File
@@ -214,7 +214,8 @@ class BitArray {
const bitmask = this.bitmask[0];
const bitarray = this.bitarray;
for (let i = 0, len = this.length; i < len; i++) {
result[i] = bitarray[i] === bitmask ? selectedValue : deselectedValue;
result[i] =
bitmask && bitarray[i] === bitmask ? selectedValue : deselectedValue;
}
} else {
for (let i = 0, len = this.length; i < len; i++) {