Skip to content

Commit a4701fe

Browse files
committed
Use "lp" as default graph options when axes already drawn
1 parent a0ece9a commit a4701fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRootPainter.more.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,11 @@
814814

815815
TGraphPainter.prototype.DecodeOptions = function(opt) {
816816

817+
if (!opt) opt = this.main_painter() ? "lp" : "alp";
818+
817819
if ((typeof opt == "string") && (opt.indexOf("same ")==0))
818820
opt = opt.substr(5);
819821

820-
if (!opt && !this.main_painter()) opt = "alp";
821-
822822
var graph = this.GetObject(),
823823
d = new JSROOT.DrawOptions(opt);
824824

0 commit comments

Comments
 (0)