From f1daf818764ea867fe37670433a4036c5154428e Mon Sep 17 00:00:00 2001 From: Mert Tumer Date: Wed, 23 Mar 2022 14:23:23 +0300 Subject: 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 Change-Id: I1db19f0292ac6775653b0db3f2860fea9e3b0adf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131971 Tested-by: Andras Timar Reviewed-by: Andras Timar --- sw/source/ui/table/instable.cxx | 5 ++--- 1 file 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(pTableTable->size()); - lbIndex = 0; - m_xLbFormat->select( lbIndex ); - tbIndex = lbIndexToTableIndex(lbIndex); + m_xLbFormat->select( minTableIndexInLb ); + tbIndex = lbIndexToTableIndex( minTableIndexInLb ); SelFormatHdl( *m_xLbFormat ); } -- cgit