sw/source/uibase/shells/basesh.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit 1d5b89eccdccb3090b5503a60f829c54c077f328 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Sun Sep 8 21:37:43 2019 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Thu Sep 12 00:20:05 2019 +0200 tdf#126833 fix table auto format undo/redo Fixes regression caused by fix for tdf#123516 Change-Id: If7b6bf9cba30085585fc495898f3dfb308197495 Reviewed-on: https://gerrit.libreoffice.org/78770 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/sw/source/uibase/shells/basesh.cxx b/sw/source/uibase/shells/basesh.cxx index 0479fca697e0..cf1b2296ca80 100644 --- a/sw/source/uibase/shells/basesh.cxx +++ b/sw/source/uibase/shells/basesh.cxx @@ -118,6 +118,7 @@ #include <SwStyleNameMapper.hxx> #include <poolfmt.hxx> #include <shellres.hxx> +#include <UndoTable.hxx> FlyMode SwBaseShell::eFrameMode = FLY_DRAG_END; @@ -2746,7 +2747,12 @@ void SwBaseShell::InsertTable( SfxRequest& _rRequest ) { SwTableNode* pTableNode = const_cast<SwTableNode*>( rSh.IsCursorInTable() ); if ( pTableNode ) + { pTableNode->GetTable().SetTableStyleName( aAutoName ); + SwUndoTableAutoFormat* pUndo = new SwUndoTableAutoFormat( *pTableNode, *pTAFormat ); + if ( pUndo ) + rSh.GetIDocumentUndoRedo().AppendUndo( std::unique_ptr<SwUndo>(pUndo) ); + } } rSh.EndAllAction(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits