From 8a85479845c89093bd2a05c31bccf8cbb7c55ad3 Mon Sep 17 00:00:00 2001 From: Armin Le Grand Date: Wed, 26 Mar 2014 11:54:52 +0000 Subject: Resolves: #i124389# for tables refresh TextFrame... when OutlinerParaObject changes (cherry picked from commit 6f2ce153c4bd7350487809d87e72619d5cd9764e) Conflicts: svx/source/svdraw/svdotext.cxx Change-Id: I54e2d25a35a099f171abdb7f0c3b046c46a0421c --- svx/source/svdraw/svdotext.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'svx/source') diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 8e89fb2b8e39..b13c9ea3a6da 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -52,6 +52,7 @@ #include #include #include +#include #include #include #include @@ -60,8 +61,6 @@ #include #include "svdconv.hxx" - - using namespace com::sun::star; @@ -1443,8 +1442,10 @@ void SdrTextObj::NbcSetOutlinerParaObjectForText( OutlinerParaObject* pTextObjec } SetTextSizeDirty(); - if (IsTextFrame() && (IsAutoGrowHeight() || IsAutoGrowWidth())) - { // adapt text frame! + // #i124389# also need to call NbcAdjustTextFrameWidthAndHeight when we are a table object (triggered from undo) + if((IsTextFrame() || 0 != dynamic_cast< sdr::table::SdrTableObj* >(this)) && (IsAutoGrowHeight() || IsAutoGrowWidth())) + { + // adapt text frame NbcAdjustTextFrameWidthAndHeight(); } if (!IsTextFrame()) -- cgit