summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-11-24 13:14:54 +0200
committerTor Lillqvist <tml@collabora.com>2014-11-24 19:27:04 +0200
commit884da2ffaceb467a0949c175ed9c56dce58056a0 (patch)
tree15305d8b97f14558f36cf188507d7f31e4824dd1 /sc/source
parent840f45193b798d75c7b72204178504b331c11f83 (diff)
Reduce the amount of data by an order of magnitude
Change-Id: I4a1deb2c1a0cfe67faef6a0d2e3d355b475eb9f0
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/optdlg/calcoptionsdlg.cxx14
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);