summaryrefslogtreecommitdiff
path: root/src/gd_interpolation.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2020-01-04 18:04:10 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2020-01-04 19:06:51 +0100
commit6d21d304295731d67db324dc3bf4630a69ebc5d6 (patch)
treeba1d7f5e8faec7c97af5f59a33df6d0fa2c36c02 /src/gd_interpolation.c
parent7a06c1669c563917bc48c464521e3de962ddb4e8 (diff)
downloadlibgd-6d21d304295731d67db324dc3bf4630a69ebc5d6.tar.gz
Fix #584: gdImageSetInterpolationMethod(im, GD_DEFAULT) inconsistent
We have to avoid the unintended fall through.
Diffstat (limited to 'src/gd_interpolation.c')
-rw-r--r--src/gd_interpolation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gd_interpolation.c b/src/gd_interpolation.c
index 86527b3..29aabed 100644
--- a/src/gd_interpolation.c
+++ b/src/gd_interpolation.c
@@ -2239,9 +2239,9 @@ BGD_DECLARE(int) gdImageSetInterpolationMethod(gdImagePtr im, gdInterpolationMet
case GD_DEFAULT:
id = GD_LINEAR;
im->interpolation = filter_linear;
+ break;
default:
return 0;
- break;
}
im->interpolation_id = id;
return 1;