From 5a61cd14173185152749f6290f0dca8a4ed6cbc8 Mon Sep 17 00:00:00 2001 From: msulliva72 <93755042+msulliva72@users.noreply.github.com> Date: Wed, 10 Jan 2024 13:01:32 -0500 Subject: [PATCH] Update to widgets/+wt/ListSelectorTwoPane.m - Fixed crash when converting app with tis compnent to auto-reflow app. Resolves Issue #57 and Geck 3198185 --- widgets/+wt/ListSelectorTwoPane.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/widgets/+wt/ListSelectorTwoPane.m b/widgets/+wt/ListSelectorTwoPane.m index c47922d..042ae92 100644 --- a/widgets/+wt/ListSelectorTwoPane.m +++ b/widgets/+wt/ListSelectorTwoPane.m @@ -485,8 +485,11 @@ function shiftListBoxIndex(obj, shift) else value = obj.ItemsData(:,selIdx); end - end + end function set.HighlightedValue(obj,value) + if isempty(value) + return; + end if isempty(obj.ItemsData) [~, obj.RightList.Value] = ismember(value, obj.Items); else