summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/ui/table/instable.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
index b700b85d53fc..94e29d28665d 100644
--- a/sw/source/ui/table/instable.cxx
+++ b/sw/source/ui/table/instable.cxx
@@ -149,9 +149,8 @@ void SwInsTableDlg::InitAutoTableFormat()
// Change this min variable if you add autotable manually.
minTableIndexInLb = 1;
maxTableIndexInLb = minTableIndexInLb + static_cast<sal_uInt8>(pTableTable->size());
- lbIndex = 0;
- m_xLbFormat->select( lbIndex );
- tbIndex = lbIndexToTableIndex(lbIndex);
+ m_xLbFormat->select( minTableIndexInLb );
+ tbIndex = lbIndexToTableIndex( minTableIndexInLb );
SelFormatHdl( *m_xLbFormat );
}