Fix SwapColor will not replace color if their string representation is using a different case

This commit is contained in:
jdescottes 2015-10-24 15:41:21 +02:00
parent 23b82b4cf0
commit 573d7ca051

View File

@ -56,8 +56,9 @@
};
ns.ColorSwap.prototype.applyToolOnFrame_ = function (frame, oldColor, newColor) {
oldColor = oldColor.toUpperCase();
frame.forEachPixel(function (color, col, row) {
if (color == oldColor) {
if (color && color.toUpperCase() == oldColor) {
frame.pixels[col][row] = newColor;
}
});