From f8765e0d2d19feea028efef4ab6100dbe9a08384 Mon Sep 17 00:00:00 2001 From: Dan Paulat Date: Sun, 10 Apr 2022 19:47:57 -0500 Subject: [PATCH] For 16-level products, only the lower-order byte should be used for the data level threshold --- scwx-qt/source/scwx/qt/view/level3_product_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scwx-qt/source/scwx/qt/view/level3_product_view.cpp b/scwx-qt/source/scwx/qt/view/level3_product_view.cpp index cb6307dc..d8a7c5fa 100644 --- a/scwx-qt/source/scwx/qt/view/level3_product_view.cpp +++ b/scwx-qt/source/scwx/qt/view/level3_product_view.cpp @@ -222,7 +222,7 @@ void Level3ProductView::UpdateColorTable() if ((th & 0x8000u) == 0) { // If bit 0 is zero, then the LSB is numeric - f = static_cast(th); + f = static_cast(th & 0x00ffu); lut[lutIndex] = p->colorTable_->Color(f); } else