We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a5693d commit 3ca0eb1Copy full SHA for 3ca0eb1
Source/RunActivity/Viewer3D/Popups/TrainCarOperationsWindow.cs
@@ -322,8 +322,10 @@ void AddSpace()
322
line.AddSpace(textHeight / 2, line.RemainingHeight);
323
}
324
325
- if (LabelPositionTop.Count == 0)
+ // Avoids crash when the PlayerTrain was changed from the Train List window
326
+ if (LabelPositionTop.Count == 0 || PlayerTrain.Cars.Count != LabelPositionTop.Count)
327
{
328
+ LabelPositionTop.Clear();
329
var n = scrollbox.Position.Y;// first row
330
for (var i = 0; i < PlayerTrain.Cars.Count; i++)
331
{ // Position of each row
0 commit comments