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