diff options
author | Mert Tumer <mert.tumer@collabora.com> | 2022-03-25 17:56:30 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2022-03-30 12:07:02 +0200 |
commit | 76ae880c33a2875cd446b25ef94351d4cdde24f2 (patch) | |
tree | 9042d92c83c0c0c40de8335c8e7c8b66cb2368d2 /sw | |
parent | 7538d17ddc41c73cc2ac3a448fa060513c23ec19 (diff) |
make default selected table style to Default Table Style for only online
unfortunately when the table has a style sw/qa/uitest/writer_tests4/tdf115573.py fails
because tables that have pre-applied style resets the style of the elements in their cells
when a new row is inserted and the ui test above relies on that. For now this is LOK only
Signed-off-by: Mert Tumer <mert.tumer@collabora.com>
Change-Id: I2f60376fc2d929498aef45259a5ef291922ccdcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132124
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Gökay ŞATIR <gokaysatir@collabora.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/table/instable.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/ui/table/instable.cxx b/sw/source/ui/table/instable.cxx index 4fa9a34bbae5..28a789db8607 100644 --- a/sw/source/ui/table/instable.cxx +++ b/sw/source/ui/table/instable.cxx @@ -148,8 +148,13 @@ void SwInsTableDlg::InitAutoTableFormat() // Change this min variable if you add autotable manually. minTableIndexInLb = 1; maxTableIndexInLb = minTableIndexInLb + static_cast<sal_uInt8>(m_xTableTable->size()); - m_xLbFormat->select( minTableIndexInLb ); - tbIndex = lbIndexToTableIndex( minTableIndexInLb ); + // 1 means default table style + // unfortunately when the table has a style sw/qa/uitest/writer_tests4/tdf115573.py fails + // because tables that have pre-applied style resets the style of the elements in their cells + // when a new row is inserted and the ui test above relies on that. For now this is LOK only + lbIndex = comphelper::LibreOfficeKit::isActive() ? 1 : 0; + m_xLbFormat->select( lbIndex ); + tbIndex = lbIndexToTableIndex(lbIndex); SelFormatHdl( *m_xLbFormat ); } |