mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fix SwapColor will not replace color if their string representation is using a different case
This commit is contained in:
parent
23b82b4cf0
commit
573d7ca051
@ -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;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user