Skip to content

Commit 1ed5158

Browse files
committed
Fix pad X range calculation
1 parent f3c8f56 commit 1ed5158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gpad/TPadPainter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1695,7 +1695,7 @@ class TPadPainter extends ObjectPainter {
16951695
r.ux1 = func(main.logx, r.ux1, 0);
16961696
r.ux2 = func(main.logx, r.ux2, 1);
16971697

1698-
let k = (r.ux1 - r.ux2)/frect.width;
1698+
let k = (r.ux2 - r.ux1)/frect.width;
16991699
r.px1 = r.ux1 - k*frect.x;
17001700
r.px2 = r.px1 + k*this.getPadWidth();
17011701

0 commit comments

Comments
 (0)