Added missing resize case for m_outerSize==0.

This commit is contained in:
Hauke Heibel 2009-10-15 23:30:15 +02:00
parent ffee27bf72
commit a4a3e511d0

View File

@ -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];