[gegl] gegl/buffer: do float adapted compare with 1.0
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] gegl/buffer: do float adapted compare with 1.0
- Date: Tue, 26 Dec 2017 21:36:18 +0000 (UTC)
commit 0b601e5b22614f9bfe81464327d7f68325699a7f
Author: Øyvind Kolås <pippin gimp org>
Date: Tue Dec 26 22:31:38 2017 +0100
gegl/buffer: do float adapted compare with 1.0
gegl/buffer/gegl-buffer-access.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-buffer-access.c b/gegl/buffer/gegl-buffer-access.c
index 0f01c97..931142e 100644
--- a/gegl/buffer/gegl-buffer-access.c
+++ b/gegl/buffer/gegl-buffer-access.c
@@ -1414,7 +1414,7 @@ _gegl_buffer_get_unlocked (GeglBuffer *buffer,
if (format == NULL)
format = buffer->soft_format;
- if (scale == 1.0 &&
+ if (GEGL_FLOAT_EQUAL (scale, 1.0) &&
rect &&
rect->width == 1 &&
rect->height == 1)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]