sw/source/ui/table/instable.cxx |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 51cea0559c373d54f65e0630c0eda1eaf0ac2fe2
Author:     Mert Tumer <mert.tu...@collabora.com>
AuthorDate: Wed Mar 23 14:23:23 2022 +0300
Commit:     Szymon Kłos <szymon.k...@collabora.com>
CommitDate: Thu Feb 9 19:12:05 2023 +0000

    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>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146722
    Tested-by: Szymon Kłos <szymon.k...@collabora.com>
    Reviewed-by: Szymon Kłos <szymon.k...@collabora.com>
    (cherry picked from commit ef46afe71751929b8b17d278d83c8e3ceefc862f)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146701

diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx
index e10279add315..7383da93bdef 100644
--- a/sw/source/ui/table/instable.cxx
+++ b/sw/source/ui/table/instable.cxx
@@ -148,9 +148,8 @@ void SwInsTableDlg::InitAutoTableFormat()
     // Change this min variable if you add autotable manually.
     minTableIndexInLb = 1;
     maxTableIndexInLb = minTableIndexInLb + 
static_cast<sal_uInt8>(m_xTableTable->size());
-    m_lbIndex = 0;
-    m_xLbFormat->select( m_lbIndex );
-    m_tbIndex = lbIndexToTableIndex(m_lbIndex);
+    m_xLbFormat->select( minTableIndexInLb );
+    m_tbIndex = lbIndexToTableIndex( minTableIndexInLb );
 
     SelFormatHdl( *m_xLbFormat );
 }

Reply via email to