Fix A=A with A a SparseMatrix

This commit is contained in:
Gael Guennebaud 2013-05-17 14:39:31 +02:00
parent 9ab3811cc5
commit bd0474adbb

View File

@ -679,7 +679,7 @@ class SparseMatrix
{ {
swap(other.const_cast_derived()); swap(other.const_cast_derived());
} }
else else if(this!=&other)
{ {
initAssignment(other); initAssignment(other);
if(other.isCompressed()) if(other.isCompressed())