summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2018-02-06 22:50:02 -0900
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-02-13 15:00:06 +0100
commitd1b13f486eacc60c9b71ec9f1b29cde2f4504d4e (patch)
tree9f3bb5a30d2b5e67689e47ba327c1f8c4709ca84
parentbfaa6e35ff09a0426d2c3c9c36f069fabc0c9489 (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>
-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 59489539f875..2a4acb63a607 100644
--- a/sw/source/uibase/shells/basesh.cxx
+++ b/sw/source/uibase/shells/basesh.cxx
@@ -2711,6 +2711,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);