We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9567762 commit d3c2d17Copy full SHA for d3c2d17
scripts/JSRootPainter.v6.js
@@ -4548,7 +4548,10 @@
4548
/// produce JSON for TCanvas, which can be used to display canvas once again
4549
TCanvasPainter.prototype.ProduceJSON = function() {
4550
4551
- var canv = this.GetObject();
+ var canv = this.GetObject(),
4552
+ fill0 = (canv.fFillStyle == 0);
4553
+
4554
+ if (fill0) canv.fFillStyle = 1001;
4555
4556
if (!this.normal_canvas) {
4557
@@ -4564,6 +4567,8 @@
4564
4567
4565
4568
var res = JSROOT.toJSON(canv);
4566
4569
4570
+ if (fill0) canv.fFillStyle = 0;
4571
4572
if (!this.normal_canvas)
4573
canv.fPrimitives.Clear();
4574
0 commit comments