From a4a3e511d0f400dfeb4c9c2c342a8c3023c4187a Mon Sep 17 00:00:00 2001 From: Hauke Heibel Date: Thu, 15 Oct 2009 23:30:15 +0200 Subject: [PATCH] Added missing resize case for m_outerSize==0. --- Eigen/src/Sparse/SparseMatrix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Sparse/SparseMatrix.h b/Eigen/src/Sparse/SparseMatrix.h index 86b35d4af..65c609686 100644 --- a/Eigen/src/Sparse/SparseMatrix.h +++ b/Eigen/src/Sparse/SparseMatrix.h @@ -267,7 +267,7 @@ class SparseMatrix const int outerSize = IsRowMajor ? rows : cols; m_innerSize = IsRowMajor ? cols : rows; m_data.clear(); - if (m_outerSize != outerSize) + if (m_outerSize != outerSize || m_outerSize==0) { delete[] m_outerIndex; m_outerIndex = new int [outerSize+1];