Skip to content

Commit d825d90

Browse files
committed
Fix - correctly identify horizontal TGaxis with reverse scale
1 parent 1c7fc22 commit d825d90

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Changes in 5.2.x
44
1. Fix - support pow(x,n) function in formula
55
2. Fix - use pad.fFillColor for frame when fFrameFillColor==0
6+
3. Fix - correctly identify horizontal TGaxis with reverse scale
67

78

89
## Changes in 5.2.3

scripts/JSRootPainter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6146,7 +6146,8 @@
61466146
x2 = this.AxisToSvg("x", gaxis.fX2),
61476147
y2 = this.AxisToSvg("y", gaxis.fY2),
61486148
w = x2 - x1, h = y1 - y2,
6149-
vertical = w < 5, kind = "normal", func = null,
6149+
vertical = Math.abs(w) < Math.abs(h),
6150+
kind = "normal", func = null,
61506151
min = gaxis.fWmin, max = gaxis.fWmax, reverse = false;
61516152

61526153
if (gaxis.fChopt.indexOf("G")>=0) {

0 commit comments

Comments
 (0)