[ROOT-8021] PaintLine not correctly drawn if out of pad Created: 26/Feb/16  Updated: 03/Mar/16  Resolved: 02/Mar/16

Status: Closed
Project: ROOT
Component/s: Graphics
Affects Version/s: < v5-28-00
Fix Version/s: 5.34/36, 6.08/00

Type: Bug Priority: High
Reporter: Fernando Hueso González Assignee: Olivier Couet
Resolution: Fixed Votes: 0
Labels: None


Attachments: File opg2root.cpp     PNG File s10_hYX.png     PNG File s10_hYX.png     File tests.opg    
Actual End:


I have a TLine, but it is not correctly drawn if one of the coordinates is out of the pad, ie, it is drawn as a vertical line, but it should be oblique. The bottom coordinate is changed somehow when drawing.

See attached script and data file, which is run through
root -l opg2root.cpp+(\"tests.opg\") -b -q -n

See then tests/s10_hYX.png, the green vertical line, (second screenshot).

If I uncomment line 1396, then the arrow is drawn correctly (first screenshot).

Comment by Olivier Couet [ 26/Feb/16 ]

The faulty bit is the -b option .. looking at it...

Also note:
https://root.cern.ch/doc/master/classTColor.html#C06 (default kBird).

Comment by Fernando Hueso González [ 26/Feb/16 ]

Thanks for the tip, nice palettes.

Comment by Olivier Couet [ 26/Feb/16 ]

A work around:


Still investigating why wide lines do not work.

Comment by Olivier Couet [ 26/Feb/16 ]

I found a fix. I need to double check before committing it.

Comment by Olivier Couet [ 02/Mar/16 ]

Now fixed. Thanks for reporting.

Comment by Fernando Hueso González [ 03/Mar/16 ]


Generated at Fri May 29 20:53:11 CEST 2020 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.