Skip to content

Commit 6fb9c79

Browse files
olafkryusveikkos
authored andcommitted
Fix text overflow for replaced jumper name
1 parent 0071ceb commit 6fb9c79

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

SJ3INFO.PAS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,12 +1525,17 @@ if (index>0) and (index<=NumProfiles) then
15251525
begin
15261526
str1:='';
15271527

1528+
x:=colx+4; y:=gety;
1529+
1530+
if (temp>15) then inc(y,8)
1531+
else inc(x,fontlen(lstr(303+temp)));
1532+
15281533
with Profile[index] do
15291534
case temp of
15301535
1 : str1:=name;
15311536
2 : str1:=realname;
15321537
5 : if (replace=0) then str1:='-'
1533-
else str1:=nimet[replace];
1538+
else str1:=nsh(nimet[replace],316-x);
15341539
6 : if (cstyle=0) then str1:=lstr(9)
15351540
else str1:=lstr(361+cstyle*40);
15361541
7 : str1:=lstr(231+skipquali);
@@ -1567,11 +1572,6 @@ if (index>0) and (index<=NumProfiles) then
15671572
else str1:=lstr(130+kothlevel);
15681573
end;
15691574

1570-
x:=colx+4; y:=gety;
1571-
1572-
if (temp>15) then inc(y,8)
1573-
else inc(x,fontlen(lstr(303+temp)));
1574-
15751575
writefont(x,y,str1);
15761576

15771577
end;
@@ -1675,7 +1675,7 @@ begin
16751675

16761676
if (value>0) then
16771677
begin
1678-
writefont(x,y,nsh(nimet[value],305-x));
1678+
writefont(x,y,nsh(nimet[value],316-fontlen('#'+txt(value))-x));
16791679
ewritefont(316,y,'#'+txt(value));
16801680
end else writefont(x,y,lstr(9));
16811681

0 commit comments

Comments
 (0)