Skip to content

Commit e4d2071

Browse files
committed
Correctly handle TF2 nosave option
1 parent 031b146 commit e4d2071

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/JSRoot.hist.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3860,7 +3860,7 @@ JSROOT.define(['d3', 'painter', 'gpad'], (d3, jsrp) => {
38603860
}
38613861

38623862
if (show_line) path_line = "";
3863-
3863+
38643864
dlw = this.lineatt.width + JSROOT.gStyle.fEndErrorSize;
38653865
if (this.options.ErrorKind === 1)
38663866
dend = Math.floor((this.lineatt.width-1)/2);
@@ -6881,9 +6881,9 @@ JSROOT.define(['d3', 'painter', 'gpad'], (d3, jsrp) => {
68816881

68826882
let drawTF2 = (divid, func, opt) => {
68836883

6884-
let d = new JSROOT.DrawOptions(opt);
6885-
6886-
let hist = createTF2Histogram(func, d.check('NOSAVE'));
6884+
let d = new JSROOT.DrawOptions(opt),
6885+
nosave = d.check('NOSAVE'),
6886+
hist = createTF2Histogram(func, nosave);
68876887

68886888
if (d.empty())
68896889
opt = "cont3";
@@ -6895,7 +6895,7 @@ JSROOT.define(['d3', 'painter', 'gpad'], (d3, jsrp) => {
68956895
return drawHistogram2D(divid, hist, opt).then(hpainter => {
68966896

68976897
hpainter.tf2_typename = func._typename;
6898-
hpainter.tf2_nosave = d.check('NOSAVE');
6898+
hpainter.tf2_nosave = nosave;
68996899

69006900
hpainter.updateObject = function(obj /*, opt*/) {
69016901
if (!obj || (this.tf2_typename != obj._typename)) return false;

0 commit comments

Comments
 (0)