Skip to content

Commit 527b7c0

Browse files
committed
Fix - stats context menu
1 parent 50c2b23 commit 527b7c0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/hist/TPavePainter.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,9 +1451,9 @@ class TPavePainter extends ObjectPainter {
14511451
});
14521452
const addStatOpt = (pos, name) => {
14531453
let sopt = (pos < 10) ? pave.fOptStat : pave.fOptFit;
1454-
sopt = parseInt(parseInt(sopt) / parseInt(Math.pow(10, pos % 10))) % 10;
1454+
sopt = Math.floor(parseInt(sopt) / parseInt(Math.pow(10, pos % 10))) % 10;
14551455
menu.addchk(sopt, name, sopt * 100 + pos, arg => {
1456-
const oldopt = parseInt(arg / 100);
1456+
const oldopt = Math.floor(arg / 100);
14571457
let newopt = (arg % 100 < 10) ? pave.fOptStat : pave.fOptFit;
14581458
newopt -= (oldopt > 0 ? oldopt : -1) * parseInt(Math.pow(10, arg % 10));
14591459
if (arg % 100 < 10) {

0 commit comments

Comments
 (0)