Fix crash on Windows when calculating a covariance matrix of dimension 1.
[pspp-builds.git] / src / ui / gui / correlation-dialog.c
index 04e11ba1479f575e82e385aced8c8e49ed0ffc3a..afc23447a7af3636e58b1b69b28f3864951e5b48 100644 (file)
@@ -74,7 +74,7 @@ dialog_state_valid (gpointer data)
   GtkTreeModel *liststore =
     gtk_tree_view_get_model (GTK_TREE_VIEW (corr->variables));
 
-  if  (gtk_tree_model_iter_n_children (liststore, NULL) >= 1)
+  if  (gtk_tree_model_iter_n_children (liststore, NULL) > 1)
     return TRUE;
 
   return FALSE;