Skip to content

Commit 4cc59d7

Browse files
committed
Fix - correctly handle negative line width in exclusion
1 parent 7cda526 commit 4cc59d7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

changes.md

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

89

910
## Changes in 5.2.3

scripts/JSRootPainter.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,13 +459,12 @@
459459
if (_width==0) line.color = 'none';
460460

461461
if (can_excl) {
462-
line.excl_side = 0;
463-
line.excl_width = 0;
462+
line.excl_side = line.excl_width = 0;
464463
if (Math.abs(line.width) > 99) {
465464
// exclusion graph
466465
line.excl_side = (line.width < 0) ? -1 : 1;
467466
line.excl_width = Math.floor(line.width / 100) * 5;
468-
line.width = line.width % 100; // line width
467+
line.width = Math.abs(line.width % 100); // line width
469468
}
470469

471470
line.ChangeExcl = function(side,width) {

scripts/JSRootPainter.more.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@
17161716
this.marker_size = 0; // indicate if markers are drawn
17171717

17181718
if (this.lineatt.excl_side!=0) {
1719-
excl_width = this.lineatt.excl_side * this.lineatt.excl_width;
1719+
excl_width = this.lineatt.excl_width;
17201720
if (this.lineatt.width>0) this.options.Line = 1;
17211721
}
17221722

0 commit comments

Comments
 (0)