Merge pull request #1042 from ONLYOFFICE/fix/bugfix

[SSE] Bug 51464
This commit is contained in:
Julia Radzhabova 2021-08-03 13:40:28 +03:00 committed by GitHub
commit 55ebf3b23f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1351,7 +1351,7 @@ define([ 'text!spreadsheeteditor/main/app/template/FormatRulesEditDlg.template',
var above = !(val%2); var above = !(val%2);
props.asc_setAboveAverage(above); props.asc_setAboveAverage(above);
props.asc_setEqualAverage(val==2 || val==3); 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; break;
case Asc.c_oAscCFType.top10: case Asc.c_oAscCFType.top10:
props.asc_setBottom(!!this.cmbRule.getValue()); props.asc_setBottom(!!this.cmbRule.getValue());