diff options
author | Erich Eckner <git@eckner.net> | 2017-10-04 11:21:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-10-04 11:21:45 +0200 |
commit | 76839aa79d4416e633cedea2c32b47ad1373e4b2 (patch) | |
tree | 68944e34485e63b9f8e43a856bda66e0d1fefe4d /epostunit.pas | |
parent | 4aa452377148f9fd3675a4840f3e734d80ec8d84 (diff) | |
download | epost-76839aa79d4416e633cedea2c32b47ad1373e4b2.tar.xz |
epostunit.pas: bugfix kont2disk
Diffstat (limited to 'epostunit.pas')
-rw-r--r-- | epostunit.pas | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epostunit.pas b/epostunit.pas index 9067e4d..ccf3290 100644 --- a/epostunit.pas +++ b/epostunit.pas @@ -2035,9 +2035,9 @@ function tWerte.kont2disk(dir: char; x: extended): longint; begin case dir of 'x': - result:=min(_xSteps-1,max(0,round(transformationen.wertZuPositionAufAchse(lOben,x,false)))); + result:=min(_xSteps-1,max(0,round((_xSteps-1)*transformationen.wertZuPositionAufAchse(lOben,x,false)))); 'y','t': - result:=min(_tSiz-1,max(0,round(transformationen.wertZuPositionAufAchse(lLinks,x,false)))); + result:=min(_tSiz-1,max(0,round((_tSiz-1)*transformationen.wertZuPositionAufAchse(lLinks,x,false)))); else result:=-1; end; |