Skip to content

Commit 6b4229c

Browse files
committed
Fix - stats context menu
1 parent 4abd052 commit 6b4229c

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
@@ -1418,9 +1418,9 @@ class TPavePainter extends ObjectPainter {
14181418
});
14191419
const addStatOpt = (pos, name) => {
14201420
let sopt = (pos < 10) ? pave.fOptStat : pave.fOptFit;
1421-
sopt = parseInt(parseInt(sopt) / parseInt(Math.pow(10, pos % 10))) % 10;
1421+
sopt = Math.floor(parseInt(sopt) / parseInt(Math.pow(10, pos % 10))) % 10;
14221422
menu.addchk(sopt, name, sopt * 100 + pos, arg => {
1423-
const oldopt = parseInt(arg / 100);
1423+
const oldopt = Math.floor(arg / 100);
14241424
let newopt = (arg % 100 < 10) ? pave.fOptStat : pave.fOptFit;
14251425
newopt -= (oldopt > 0 ? oldopt : -1) * parseInt(Math.pow(10, arg % 10));
14261426
if (arg % 100 < 10) {

0 commit comments

Comments
 (0)