diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:14:54 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:37:54 +0200 |
commit | 634a69019189389cc8a7154c846454807fce96a3 (patch) | |
tree | c9c5b7cf32aebc4d115b01015d50bee3505a9737 /sc | |
parent | c6f1f948178ab29ea190117376cb9365d8f4fd7b (diff) |
Reduce the amount of data by an order of magnitude
Change-Id: I4a1deb2c1a0cfe67faef6a0d2e3d355b475eb9f0
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index c8007265e552..0b0d160d05dd 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -1038,7 +1038,7 @@ struct Op : Area const OUString& rOp, double nRangeLo, double nRangeHi, double nEpsilon) : - Area(rTitle, 1000), + Area(rTitle, 200), msOp(rOp), mnRangeLo(nRangeLo), mnRangeHi(nRangeHi), @@ -1355,31 +1355,31 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) return (nArg == 0); })); - pTestDocument->addTest(Reduction("Sum", "SUM", 500, 0, -1000, 1000, 3e-10, + pTestDocument->addTest(Reduction("Sum", "SUM", 100, 0, -1000, 1000, 3e-10, [] (double nAccum, double nArg) { return (nAccum + nArg); })); - pTestDocument->addTest(Reduction("Average", "AVERAGE", 500, 0, -1000, 1000, 3e-10, + pTestDocument->addTest(Reduction("Average", "AVERAGE", 100, 0, -1000, 1000, 3e-10, [] (double nAccum, double nArg) { - return (nAccum + nArg / static_cast<double>(500)); + return (nAccum + nArg/100.); })); - pTestDocument->addTest(Reduction("Product", "PRODUCT", 500, 1, 0.1, 2.5, 3e-10, + pTestDocument->addTest(Reduction("Product", "PRODUCT", 100, 1, 0.1, 2.5, 3e-10, [] (double nAccum, double nArg) { return (nAccum * nArg); })); - pTestDocument->addTest(Reduction("Min", "MIN", 500, DBL_MAX, -1000, 1000, 0, + pTestDocument->addTest(Reduction("Min", "MIN", 100, DBL_MAX, -1000, 1000, 0, [] (double nAccum, double nArg) { return std::min(nAccum, nArg); })); - pTestDocument->addTest(Reduction("Max", "MAX", 500, -DBL_MAX, -1000, 1000, 0, + pTestDocument->addTest(Reduction("Max", "MAX", 100, -DBL_MAX, -1000, 1000, 0, [] (double nAccum, double nArg) { return std::max(nAccum, nArg); |