diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2011-09-12 14:26:31 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2011-09-12 16:40:51 +0200 |
commit | d26b0df3465e449c124231ed7572c8879b2ac772 (patch) | |
tree | 8eb3966338ad827523c62d37a3841a5fa934738a /svx | |
parent | 6b7a9a6fd66b3bd72dcf48f93611a4fd47fc1253 (diff) |
stylistic
make it clearer that DbGridControl_Base::RemoveColumn
is meant to be called unconditionally
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridctrl.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index aea82df2b3c6..6699ff944563 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -1704,8 +1704,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); + + const sal_uInt16 nIndex = GetModelColumnPos(nId); if(nIndex != GRID_COLUMN_NOT_FOUND) { delete m_aColumns[nIndex]; |