summaryrefslogtreecommitdiff
path: root/core/image.cpp
diff options
context:
space:
mode:
authorGilles Roudiere <gilles.roudiere@gmail.com>2017-10-14 10:11:39 +0200
committerGitHub <noreply@github.com>2017-10-14 10:11:39 +0200
commite8f8359b2edd583480218b7348cdbe43e959a16e (patch)
tree066ffa55204a9bec70a3143a95a32fa7481ebe66 /core/image.cpp
parent0362a156b0ed808dac990d8bfd3653bb7ff71d1e (diff)
parent51597b6d69dfc50112c24fca7235f43d24d23550 (diff)
Merge pull request #12072 from ComancheAk/fix-alpha-border-bugfix
Fix Alpha Border bugfix
Diffstat (limited to 'core/image.cpp')
-rw-r--r--core/image.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/image.cpp b/core/image.cpp
index c7f21d5599..943cbaf51d 100644
--- a/core/image.cpp
+++ b/core/image.cpp
@@ -2474,6 +2474,7 @@ void Image::fix_alpha_edges() {
if (rp[3] < alpha_threshold)
continue;
+ closest_dist = dist;
closest_color[0] = rp[0];
closest_color[1] = rp[1];
closest_color[2] = rp[2];