summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-02-06 22:50:02 -0900
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-02-13 22:59:48 +0100
commit55b37cc3ade30257858515b1a062ff9130488a5f (patch)
tree6b6f9e4e9d96a4dcf14c7c1eb9535dedc74c81d6
parent10a5ea8f6365236fcc1d31b940113b3363f56209 (diff)
tdf#108227 Set table style so it is highlighted in Sidebar styles list
Change-Id: I930085839c9ab7297e492c1463b54d41c087361c Reviewed-on: https://gerrit.libreoffice.org/49338 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> (cherry picked from commit d1b13f486eacc60c9b71ec9f1b29cde2f4504d4e) Reviewed-on: https://gerrit.libreoffice.org/49658 Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
-rw-r--r--sw/source/uibase/shells/basesh.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx
index 9d907536b750..b938767159bb 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2710,6 +2710,8 @@ void SwBaseShell::InsertTable( SfxRequest& _rRequest )
if( pTAFormat == nullptr )
rSh.SetTableStyle( SwStyleNameMapper::GetUIName( RES_POOLTABSTYLE_DEFAULT, OUString() ) );
+ else
+ rSh.SetTableStyle( aAutoName );
rSh.EndAllAction();
rTempView.AutoCaption(TABLE_CAP);