diff options
author | Eike Rathke <erack@redhat.com> | 2013-10-18 21:21:14 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-10-18 21:25:10 +0200 |
commit | ac0dc48b63d93155304dfc44bd8f83adc4ae0825 (patch) | |
tree | bac77b7e33602c05d61bad4b2acc8b6c22238fac | |
parent | 1e49bb2d7fc7dcdf02833a189f2962c607967ba6 (diff) |
check fCount beforehand and bail out early, fdo#70000 related
Change-Id: I47265cf0be9785e8be4b4be0b13d40cda206f349
-rw-r--r-- | sc/source/core/tool/interpr3.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr3.cxx b/sc/source/core/tool/interpr3.cxx index ee30c4869b9d..3699a3990e84 100644 --- a/sc/source/core/tool/interpr3.cxx +++ b/sc/source/core/tool/interpr3.cxx @@ -3850,7 +3850,7 @@ void ScInterpreter::CalculatePearsonCovar( bool _bPearson, bool _bStexy, bool _b } } } - if (fCount < (_bStexy ? 3.0 : 1.0)) // fCount==1 is handled by checking denominator later on + if (fCount < (_bStexy ? 3.0 : (_bSample ? 2.0 : 1.0))) // fCount==1 is handled by checking denominator later on PushNoValue(); else { |