From a1c6c18cd696951b869d0dd7649856fef64a3747 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 3 Aug 2021 11:53:44 +0300 Subject: [PATCH] [SSE] Bug 51464 --- apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js index 3be992656..5ef8ac76e 100644 --- a/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js +++ b/apps/spreadsheeteditor/main/app/view/FormatRulesEditDlg.js @@ -1351,7 +1351,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template', var above = !(val%2); props.asc_setAboveAverage(above); props.asc_setEqualAverage(val==2 || val==3); - props.asc_setStdDev(val>3 ? (val/2 - 1) : 0); + props.asc_setStdDev(val>3 ? (Math.floor(val/2) - 1) : 0); break; case Asc.c_oAscCFType.top10: props.asc_setBottom(!!this.cmbRule.getValue());