Skip to content

Commit 49d8b86

Browse files
committed
UPO ruc: do not show driver names when there are none.
1 parent a361de3 commit 49d8b86

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/jc/JCBarriers.pas

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,9 @@ class function TJCBarRVManual.ToUPO(addr: Integer): TUPOItem;
10751075

10761076
Result[0] := GetUPOLine('Vozidlo v ručním řízení', taCenter, TJopColor.black, TJopColor.yellow);
10771077
Result[1] := GetUPOLine(IntToStr(addr) + ' : ' + RVDb[addr].name);
1078-
Result[2] := GetUPOLine('Řídí: '+RVDb[addr].DriverFullNames());
1078+
var drivers: string := RVDb[addr].DriverFullNames();
1079+
if (drivers <> '') then
1080+
Result[2] := GetUPOLine('Řídí: '+drivers);
10791081
end;
10801082

10811083
function TJCBarRVManual.ToUPO(): TUPOItem;

0 commit comments

Comments
 (0)