Fix crash on Windows when calculating a covariance matrix of dimension 1.
authorJohn Darrington <john@darrington.wattle.id.au>
Fri, 21 May 2010 11:11:04 +0000 (13:11 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Fri, 21 May 2010 11:11:04 +0000 (13:11 +0200)
commit930138c8279976294019300966e1fb842173f762
treecca09fbd4bcbdd51c161ca709dcd714dce6934bc
parent706a317592761872bc0c432cad854207f40f0870
Fix crash on Windows when calculating a covariance matrix of dimension 1.

Calculating a covariance matrix on a single variable crashed under Windows.
This change fixes that.  It also prevents GUI users from attempting to
perform a correlation with only one variable, since if they are trying to
do that, then the have probably made a mistake.
src/math/covariance.c
src/ui/gui/correlation-dialog.c