From 13dcb16e603d32b8788789d957b2900d5c8c7021 Mon Sep 17 00:00:00 2001 From: roby Date: Wed, 7 Sep 2022 12:51:46 -0600 Subject: [PATCH] IRSA-4793: fixed: three color bug- failed on red disabled --- .../edu/caltech/ipac/visualize/plot/plotdata/ImageStretch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/firefly/java/edu/caltech/ipac/visualize/plot/plotdata/ImageStretch.java b/src/firefly/java/edu/caltech/ipac/visualize/plot/plotdata/ImageStretch.java index c2ef6eed4b..6e875657a7 100644 --- a/src/firefly/java/edu/caltech/ipac/visualize/plot/plotdata/ImageStretch.java +++ b/src/firefly/java/edu/caltech/ipac/visualize/plot/plotdata/ImageStretch.java @@ -20,7 +20,7 @@ public class ImageStretch { private static boolean isHuePreserving(RangeValues rv) { - return rv.rgbPreserveHue(); + return rv!=null ? rv.rgbPreserveHue() : false; }