summaryrefslogtreecommitdiff
path: root/kit/Watermark.hpp
diff options
context:
space:
mode:
authormert <mert.tumer@collabora.com>2019-11-25 07:55:21 +0300
committerMichael Meeks <michael.meeks@collabora.com>2019-11-27 05:34:27 +0100
commitba423563307b9e7943723042dcfa8ccf029e9faf (patch)
tree3a7b1aa0adddabd9565b139105422673672d5f26 /kit/Watermark.hpp
parent99ed303e2fd884e77f50a433c5fd46f997007c65 (diff)
Fix minor comparison error
This patch is a follow-up for overflowing watermarks patch Change-Id: I8613736dc4fea49a22ae29aba209c95b1ea93557 Reviewed-on: https://gerrit.libreoffice.org/83635 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'kit/Watermark.hpp')
-rw-r--r--kit/Watermark.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kit/Watermark.hpp b/kit/Watermark.hpp
index 47aea5878..5fc0e5c3c 100644
--- a/kit/Watermark.hpp
+++ b/kit/Watermark.hpp
@@ -71,7 +71,7 @@ private:
{
unsigned char* t = to + 4 * (to_y * to_width + to_x);
- if (t[3] != 255.0)
+ if (t[3] != 255)
continue;
double dst_r = t[0];