diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-09-11 23:07:27 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-09-11 23:14:36 +0200 |
commit | b71d12fbfdd4aad0b576645a0d7bbf71d1da7a3a (patch) | |
tree | f37cc41f6cff74e61bbbb232c75a88778141ac9b /svx | |
parent | 1b6310433280ae4e8439dcbf17dfa763bf2826cc (diff) |
fdo#40701: DbGridControl::RemoveColumn even if no corresponding Model column
That case crops up when nId==0 i.e. the Handle column
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index f74fdffc3979..aea82df2b3c6 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1705,9 +1705,9 @@ sal_uInt16 DbGridControl::AppendColumn(const XubString& rName, sal_uInt16 nWidth void DbGridControl::RemoveColumn(sal_uInt16 nId) { const sal_uInt16 nIndex = GetModelColumnPos(nId); + DbGridControl_Base::RemoveColumn(nId); if(nIndex != GRID_COLUMN_NOT_FOUND) { - DbGridControl_Base::RemoveColumn(nId); delete m_aColumns[nIndex]; m_aColumns.erase( m_aColumns.begin()+nIndex ); } |