mirror of
https://codeberg.org/tenacityteam/tenacity
synced 2025-10-04 19:12:51 +02:00
fix infinite loop
(and this, kids, is why oneliners loops are inherently suspicious) (cherry picked from commit 727f6e3ef4533effcdc77e943f04e3c6b134cd1e)
This commit is contained in:
@@ -524,7 +524,10 @@ LabelStruct LabelStruct::Import(wxTextFile &file, int &index, LabelFormat format
|
|||||||
// with spaces. This is not reversed on export.
|
// with spaces. This is not reversed on export.
|
||||||
while (index < (int)file.GetLineCount() &&
|
while (index < (int)file.GetLineCount() &&
|
||||||
!file.GetLine(index).IsEmpty())
|
!file.GetLine(index).IsEmpty())
|
||||||
|
{
|
||||||
title += " " + file.GetLine(index);
|
title += " " + file.GetLine(index);
|
||||||
|
index++;
|
||||||
|
}
|
||||||
|
|
||||||
index++; // Skip over empty line
|
index++; // Skip over empty line
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user