diff options
author | Erich Eckner <git@eckner.net> | 2016-03-15 11:28:53 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2016-03-15 11:31:35 +0100 |
commit | f8c67d5ff033fdd9f104d82bed1d7e3ed9b214ce (patch) | |
tree | 20dc845a912d1c2f969e12fabb9c48af7128b1df /werteunit.pas | |
parent | ed166b777843f1cc5e9833858fd537f6a875810c (diff) | |
download | epost-f8c67d5ff033fdd9f104d82bed1d7e3ed9b214ce.tar.xz |
zoombug entfernt
Diffstat (limited to 'werteunit.pas')
-rw-r--r-- | werteunit.pas | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/werteunit.pas b/werteunit.pas index 3150061..5f8dda4 100644 --- a/werteunit.pas +++ b/werteunit.pas @@ -966,12 +966,16 @@ begin tv:=min(params.tsiz-1,max(0,ceil((j-1/2)/yz+tmi))); tb:=min(params.tsiz-1,max(0,ceil((j+1/2)/yz+tmi-1))); if xv>xb then begin - xv:=xv-byte((i>0) or (xpmi>0)); - xb:=xb+byte((xpmi<0) or ((i=0) and (xpmi=0))); + if (i>0) or (xpmi>0) then + dec(xv) + else + inc(xb); end; if tv>tb then begin - tv:=tv-byte(j>0); - tb:=tb+byte(j=0); + if j>0 then + dec(tv) + else + inc(tb); end; if (xv>xb) or (tv>tb) then begin gibAus('Keine Inputwerte für Position '+inttostr(i)+':'+inttostr(j)+'!',1); |