summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2011-09-12 14:26:31 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2011-09-12 16:40:51 +0200
commitd26b0df3465e449c124231ed7572c8879b2ac772 (patch)
tree8eb3966338ad827523c62d37a3841a5fa934738a /svx
parent6b7a9a6fd66b3bd72dcf48f93611a4fd47fc1253 (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.cxx3
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];