mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-02-02 11:05:59 +01:00
* fixed outtext(''), c was a byte, this leads to an underflow and
garbage was written
This commit is contained in:
parent
73b01893ce
commit
947db5dbe3
@ -360,8 +360,7 @@
|
||||
ch: char;
|
||||
b1,b2 : shortint;
|
||||
b3 : byte;
|
||||
c : byte;
|
||||
i,j,k : longint;
|
||||
i,j,k,c : longint;
|
||||
oldvalues : linesettingstype;
|
||||
nextpos : word;
|
||||
xpos,ypos,offs: longint;
|
||||
@ -389,6 +388,8 @@
|
||||
begin
|
||||
c:=length(textstring);
|
||||
{ We must a length strength which is ZERO based }
|
||||
{ if c is a byte and length is zero, this is }
|
||||
{ dangerous, fixed }
|
||||
Dec(c);
|
||||
if CurrentTextInfo.direction=HorizDir then
|
||||
{ Horizontal direction }
|
||||
@ -689,7 +690,11 @@
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.5 1999-07-26 09:38:43 florian
|
||||
Revision 1.6 1999-09-12 08:02:22 florian
|
||||
* fixed outtext(''), c was a byte, this leads to an underflow and
|
||||
garbage was written
|
||||
|
||||
Revision 1.5 1999/07/26 09:38:43 florian
|
||||
* bar: y2 can be less y1, fixed
|
||||
* settextstyle: charsize can be 0, must be changed into 1
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user