From 619f56858c47e1fb1b0266ac59b0f13b72bb81f5 Mon Sep 17 00:00:00 2001 From: christof-wittreich Date: Wed, 16 Aug 2023 07:15:29 -0500 Subject: [PATCH] Prevented squash palette button from lowing max (#4569) --- web/js/components/layer/settings/palette-threshold.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/components/layer/settings/palette-threshold.js b/web/js/components/layer/settings/palette-threshold.js index 2e4b8a9184..7aa04a1beb 100644 --- a/web/js/components/layer/settings/palette-threshold.js +++ b/web/js/components/layer/settings/palette-threshold.js @@ -36,7 +36,7 @@ class PaletteThreshold extends React.Component { setRange( layerId, parseFloat(palette.entries.refs.indexOf(startIndex)), - parseFloat(palette.entries.refs.indexOf(endIndex)), + parseFloat(palette.entries.refs.lastIndexOf(endIndex)), isSquashed, index, groupName,