From 1d3e4bc3b65a696d67ef9c157e67a03e8f37e08d Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Wed, 26 Mar 2014 15:38:38 +0000 Subject: [PATCH] Resolves: #i120201# added forcing TableLayouter to take action... in table undo/redo (CellUndo) (cherry picked from commit 88b1d35131b0ea44ac6ba6f7edeab82d1c29a39f) Change-Id: I407323bf6c96ad577d8fc24c82118afc6173f97d --- svx/source/table/tableundo.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/svx/source/table/tableundo.cxx b/svx/source/table/tableundo.cxx index d4d5d48e2b4e..c406a480e0f4 100644 --- a/svx/source/table/tableundo.cxx +++ b/svx/source/table/tableundo.cxx @@ -129,8 +129,13 @@ void CellUndo::setDataToCell( const Data& rData ) mxCell->mnRowSpan = rData.mnRowSpan; mxCell->mnColSpan = rData.mnColSpan; - if( mxObjRef.is() ) + if(mxObjRef.is()) + { + // #i120201# ActionChanged is not enough, we need to trigger TableLayouter::UpdateBorderLayout() + // and this is done best using ReformatText() for table objects mxObjRef->ActionChanged(); + mxObjRef->NbcReformatText(); + } } void CellUndo::getDataFromCell( Data& rData )