Skip to content

Commit 11673d1

Browse files
authored
LT-22558 Fix crash in TonePars utility with Chinese WS (#947)
Change-Id: Ic3f96fd368e59c2258c07daa7c36bc5e99a925f0
1 parent 2fde144 commit 11673d1

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Src/Utilities/pcpatrflex/ToneParsFLExDll/ToneParsFLExForm.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,13 @@ public void FillTextsListBox()
346346
if (selectedText != null)
347347
{
348348
lbTexts.SelectedIndex = Texts.IndexOf(selectedText);
349-
}
350-
var selectedSegment = SegmentsInListBox
351-
.Where(s => s.Segment.Guid.ToString() == RetrievedLastSegment)
352-
.FirstOrDefault();
353-
if (selectedSegment != null)
354-
{
355-
lbSegments.SelectedIndex = SegmentsInListBox.IndexOf(selectedSegment);
349+
var selectedSegment = SegmentsInListBox
350+
.Where(s => s.Segment.Guid.ToString() == RetrievedLastSegment)
351+
.FirstOrDefault();
352+
if (selectedSegment != null)
353+
{
354+
lbSegments.SelectedIndex = SegmentsInListBox.IndexOf(selectedSegment);
355+
}
356356
}
357357
}
358358
}

0 commit comments

Comments
 (0)