From fa4578ac5368c52db7401c336e08def49dba11e6 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 28 Apr 2020 00:35:27 +0200 Subject: [PATCH] Small fix of unit tests. --- src/img/unit_tests/imgFile.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/img/unit_tests/imgFile.cc b/src/img/unit_tests/imgFile.cc index 7a292a9c8..40ff82126 100644 --- a/src/img/unit_tests/imgFile.cc +++ b/src/img/unit_tests/imgFile.cc @@ -44,6 +44,7 @@ TEST(1_FloatMono) dm.contrast = -0.5; dm.gamma = 1.5; dm.brightness = 1.25; + dm.false_color_nodes.clear (); dm.false_color_nodes.push_back (std::make_pair (0.0, std::make_pair (QColor (0, 0, 0), QColor (0, 0, 0)))); dm.false_color_nodes.push_back (std::make_pair (0.5, std::make_pair (QColor (255, 0, 0), QColor (0, 255, 0)))); dm.false_color_nodes.push_back (std::make_pair (1.0, std::make_pair (QColor (255, 255, 255), QColor (255, 255, 255))));