Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions Source/UnicodeBrowser/Widgets/SUnicodeBlockRangeSelector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,16 +106,20 @@ void SUnicodeBlockRangeSelector::SetRanges(TArray<EUnicodeBlockRange> const& Ran
continue;
}

if (CheckboxIndices[Range.Index], RangesToSet.Contains(Range.Index))
int32 const ItemIndex = CheckboxIndices[Range.Index];

if (ItemIndex, RangesToSet.Contains(Range.Index))
{
CheckBoxList->SetItemChecked(CheckboxIndices[Range.Index], ECheckBoxState::Checked);

CheckBoxList->SetItemChecked(ItemIndex, ECheckBoxState::Checked);
}
else if (bExclusive)
{
CheckBoxList->SetItemChecked(CheckboxIndices[Range.Index], ECheckBoxState::Unchecked);
CheckBoxList->SetItemChecked(ItemIndex, ECheckBoxState::Unchecked);
}
}
}
}

void SUnicodeBlockRangeSelector::Tick(FGeometry const& AllottedGeometry, double const InCurrentTime, float const InDeltaTime)
{
Expand Down