From d8772bdd8d6a5079f07315964d5cc1b4630f57a5 Mon Sep 17 00:00:00 2001 From: jdescottes Date: Sat, 17 May 2014 00:09:59 +0200 Subject: [PATCH] Fix : do not apply lighten if transparent --- src/js/drawingtools/Lighten.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/js/drawingtools/Lighten.js b/src/js/drawingtools/Lighten.js index 36b0440c..bfe70b2d 100644 --- a/src/js/drawingtools/Lighten.js +++ b/src/js/drawingtools/Lighten.js @@ -39,9 +39,6 @@ var step = isSinglePass ? this.step * 2 : this.step; var pixelColor = frame.getPixel(col, row); - if (pixelColor === Constants.TRANSPARENT_COLOR) { - pixelColor = isDarken ? 'white' : 'black'; - } if (isDarken) { color = window.tinycolor.darken(pixelColor, step); } else {