lto-barcode: fix page offset calibration

This commit is contained in:
Dietmar Maurer 2021-02-12 13:34:19 +01:00
parent 167e5406c3
commit 6b66c8507f
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ Ext.define('PageCalibration', {
scalex = 100/values.d_x;
scaley = 100/values.d_y;
let offsetx = ((50*scalex) - values.s_x)/scalex;
let offsety = ((50*scaley) - values.s_y)/scaley;
let offsetx = ((50 - values.s_x) - (50*scalex - 50))/scalex;
let offsety = ((50 - values.s_y) - (50*scaley - 50))/scaley;
return {
scalex: scalex,