From 6d34de21b819bd8c3cd79b90a0830d31c7b45e31 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Tue, 24 Apr 2018 21:47:46 +0200 Subject: [PATCH] Missing else in else if. --- src/apps/showimage/Filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/showimage/Filter.cpp b/src/apps/showimage/Filter.cpp index c8e7fc7735..d9d5c7c4b7 100644 --- a/src/apps/showimage/Filter.cpp +++ b/src/apps/showimage/Filter.cpp @@ -757,7 +757,7 @@ Scaler::Limit(intType value) { if (value < 0) { value = 0; - } if (value > 255) { + } else if (value > 255) { value = 255; } return value;