[Libreoffice-commits] core.git: svx/source
Armin Le Grand
alg at apache.org
Fri Mar 28 06:55:40 PDT 2014
svx/source/table/tableundo.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 1d3e4bc3b65a696d67ef9c157e67a03e8f37e08d
Author: Armin Le Grand <alg at apache.org>
Date: Wed Mar 26 15:38:38 2014 +0000
Resolves: #i120201# added forcing TableLayouter to take action...
in table undo/redo (CellUndo)
(cherry picked from commit 88b1d35131b0ea44ac6ba6f7edeab82d1c29a39f)
Change-Id: I407323bf6c96ad577d8fc24c82118afc6173f97d
diff --git a/svx/source/table/tableundo.cxx b/svx/source/table/tableundo.cxx
index d4d5d48..c406a48 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 )
More information about the Libreoffice-commits
mailing list