summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2022-03-23 14:23:23 +0300
committerAndras Timar <andras.timar@collabora.com>2022-03-23 16:55:14 +0100
commitf1daf818764ea867fe37670433a4036c5154428e (patch)
tree92806fc30dba11c9f2d17e344fa8c32f2d25c749
parentbd568636bfe85d1f72b93227adb501a959068213 (diff)
sw: change inserttable style option default to 1
Right now it is default to NONE in the list if the user explicitly choses otherwise but that does not align with inserttable option on the toolbar there it is defaulted to "Default Table Style" 1 means "Default Table Style" Signed-off-by: Mert Tumer <mert.tumer@collabora.com> Change-Id: I1db19f0292ac6775653b0db3f2860fea9e3b0adf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131971 Tested-by: Andras Timar <andras.timar@collabora.com> Reviewed-by: Andras Timar <andras.timar@collabora.com>
-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 );
}