sw/source/ui/table/instable.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit f1daf818764ea867fe37670433a4036c5154428e Author: Mert Tumer <mert.tu...@collabora.com> AuthorDate: Wed Mar 23 14:23:23 2022 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Mar 23 16:55:14 2022 +0100 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.tu...@collabora.com> Change-Id: I1db19f0292ac6775653b0db3f2860fea9e3b0adf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131971 Tested-by: Andras Timar <andras.ti...@collabora.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> 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 ); }