Make digits with null behaves like null digits

issue5019
review19531002
This commit is contained in:
Cédric Krier committed 2015-10-08 19:42:08 +02:00
1 parent 0bef90bfd3
commit 2ba1b1acfc
1 file changed
+4 -2
+4 -2
View File
@@ -1493,8 +1493,10 @@
if (factor === undefined) {
factor = 1;
}
var digits = record.expr_eval( this.description.digits);
if (!digits) {
var digits = record.expr_eval(this.description.digits);
if (!digits || !digits.every(function(e) {
return e !== null;
})) {
return;
}
var shift = Math.round(Math.log(Math.abs(factor)) / Math.LN10);