[ Only the change for UpdateAttrRowsOrCols was valid. ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31799
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
else
{
// ...or remove the attribute
- m_attrs[n].attr->DecRef();
+ // No need to DecRef the attribute itself since this is
+ // done be wxGridCellWithAttr's destructor!
m_attrs.RemoveAt(n);
n--; count--;
}
else
{
// ...or remove the attribute
- m_attrs[n].attr->DecRef();
+ // No need to DecRef the attribute itself since this is
+ // done be wxGridCellWithAttr's destructor!
m_attrs.RemoveAt(n);
n--; count--;
}