summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorComanche_Ak <comanche.ak@gmail.com>2017-10-13 16:03:05 +0300
committerComanche_Ak <comanche.ak@gmail.com>2017-10-13 20:19:33 +0300
commit51597b6d69dfc50112c24fca7235f43d24d23550 (patch)
treeb0f9d7747fc5461c7b0196fdcc789f5133c46f36 /core
parente97ada64135dcdf81ac817ded43c810b3f6883e5 (diff)
Fix Alpha Border bugfix
Diffstat (limited to 'core')
-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];