sw/source/uibase/shells/basesh.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d1b13f486eacc60c9b71ec9f1b29cde2f4504d4e
Author: Jim Raykowski <rayk...@gmail.com>
Date:   Tue Feb 6 22:50:02 2018 -0900

    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 <c...@libreoffice.org>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to