Skip to content

Commit 2dbb4ce

Browse files
committed
cleaned disgusting link chain
1 parent cd1d795 commit 2dbb4ce

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Source/Frontend/UI/Forms/BlastEditorForm.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,11 @@ private void OnFilterTextChanged(object sender, EventArgs e)
899899
{
900900
//If it's an address or a source address we want decimal
901901
case "Address":
902-
_bs.DataSource = currentSK.BlastLayer.Layer.Where(x => x.Address.ToString("X").ToUpper().Substring(0, tbFilter.Text.Length.Clamp(0, x.Address.ToString("X").Length)) == tbFilter.Text.ToUpper()).ToList();
902+
_bs.DataSource = currentSK.BlastLayer.Layer
903+
.Where(x => x.Address.ToString("X")
904+
.ToUpper()
905+
.Substring(0, tbFilter.Text.Length.Clamp(0, x.Address.ToString("X").Length)) == tbFilter.Text.ToUpper())
906+
.ToList();
903907
break;
904908
case "SourceAddress":
905909
_bs.DataSource = currentSK.BlastLayer.Layer.Where(x => x.SourceAddress.ToString("X").ToUpper().Substring(0, tbFilter.Text.Length.Clamp(0, x.SourceAddress.ToString("X").Length)) == tbFilter.Text.ToUpper()).ToList();

0 commit comments

Comments
 (0)