Skip to content

Commit 8e9a9ef

Browse files
committed
Build and changelog
1 parent 9d2ba47 commit 8e9a9ef

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

build/jsroot.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const version_id = '7.9.x',
1212

1313
/** @summary version date
1414
* @desc Release date in format day/month/year like '14/04/2022' */
15-
version_date = '28/04/2025',
15+
version_date = '29/04/2025',
1616

1717
/** @summary version id and date
1818
* @desc Produced by concatenation of {@link version_id} and {@link version_date}
@@ -78103,8 +78103,8 @@ class TPadPainter extends ObjectPainter {
7810378103

7810478104
for (let k = this.painters.length - 1; k >= 0; --k) {
7810578105
const subp = this.painters[k];
78106-
if (selector(subp)) {
78107-
subp.cleanup();
78106+
if (!subp || selector(subp)) {
78107+
subp?.cleanup();
7810878108
this.painters.splice(k, 1);
7810978109
is_any = true;
7811078110
}
@@ -79079,6 +79079,9 @@ class TPadPainter extends ObjectPainter {
7907979079
if (!arg || !isStr(arg))
7908079080
return;
7908179081
const arr = arg.split('x');
79082+
// workaround - prevent full deletion of canvas
79083+
if (this.normal_canvas === false)
79084+
this.normal_canvas = true;
7908279085
this.cleanPrimitives(true);
7908379086
if (arr.length === 1)
7908479087
this.divide(Number.parseInt(arr[0]));
@@ -79090,7 +79093,7 @@ class TPadPainter extends ObjectPainter {
7909079093
menu.add('Build legend', () => this.buildLegend());
7909179094

7909279095
menu.sub('Divide', () => menu.input('Input divide arg', '2x2').then(do_divide), 'Divide on sub-pads');
79093-
['1x2', '2x1', '2x2', '2x3', '3x2', '3x3', '4x4', '0'].forEach(item => menu.add(item, item, do_divide));
79096+
['1x2', '2x1', '2x2', '2x3', '3x2', '3x3', '4x4'].forEach(item => menu.add(item, item, do_divide));
7909479097
menu.endsub();
7909579098

7909679099
menu.add('Save to gStyle', () => {
@@ -85241,7 +85244,7 @@ class THistPainter extends ObjectPainter {
8524185244
}
8524285245

8524385246
if (!enabled) {
85244-
if (pal_painter) {
85247+
if (pal_painter && !this.options.Same) {
8524585248
this.options.Zvert = pal_painter._palette_vertical;
8524685249
pal_painter.Enabled = false;
8524785250
pal_painter.removeG(); // completely remove drawing without need to redraw complete pad
@@ -85253,8 +85256,11 @@ class THistPainter extends ObjectPainter {
8525385256
if (!pal) {
8525485257
pal = create$1(clTPaletteAxis);
8525585258

85259+
if (!can_move)
85260+
can_move = !this.options.Same;
85261+
8525685262
pal.fInit = 1;
85257-
pal.$can_move = true;
85263+
pal.$can_move = can_move;
8525885264
pal.$generated = true;
8525985265

8526085266
if (this.options.Zvert)
@@ -85275,8 +85281,6 @@ class THistPainter extends ObjectPainter {
8527585281

8527685282
// place colz in the beginning, that stat box is always drawn on the top
8527785283
this.addFunction(pal, true);
85278-
85279-
can_move = true;
8528085284
} else if (pp?._palette_vertical !== undefined)
8528185285
this.options.Zvert = pp._palette_vertical;
8528285286

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## Changes in 7.9.x
44
1. Fix - colz handling on `THStack`, avoid multiple palette drawings
5+
2. Fix - bug in pad.Divide context menu command
56

67

78
## Changes in 7.9.0

modules/core.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const version_id = '7.9.x',
44

55
/** @summary version date
66
* @desc Release date in format day/month/year like '14/04/2022' */
7-
version_date = '28/04/2025',
7+
version_date = '29/04/2025',
88

99
/** @summary version id and date
1010
* @desc Produced by concatenation of {@link version_id} and {@link version_date}

0 commit comments

Comments
 (0)