diff options
author | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:03:52 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-11-24 13:08:19 +0200 |
commit | 62a06cd0a9ab053d6560f7395a4b0f339c2fbe58 (patch) | |
tree | c062f7d717fb1d1ecea4552be8346189d18372e4 /sc | |
parent | 9d842b485f6c1a0d50d3d9d80ef8a61060645a62 (diff) |
Add MIN and MAX tests
Change-Id: Ia8d5fdeb1e03009035136edeab991442b7d91c4b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/optdlg/calcoptionsdlg.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/ui/optdlg/calcoptionsdlg.cxx b/sc/source/ui/optdlg/calcoptionsdlg.cxx index 1d7c6f1529be..ebaf2ed44cfd 100644 --- a/sc/source/ui/optdlg/calcoptionsdlg.cxx +++ b/sc/source/ui/optdlg/calcoptionsdlg.cxx @@ -1367,6 +1367,18 @@ IMPL_LINK( ScCalcOptionsDialog, TestClickHdl, PushButton*, ) return (nAccum * nArg); })); + pTestDocument->addTest(Reduction("Min", "MIN", 500, 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, + [] (double nAccum, double nArg) + { + return std::max(nAccum, nArg); + })); + return 0; } |