You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2014/03/26 12:54:52 UTC
svn commit: r1581793 - /openoffice/trunk/main/svx/source/svdraw/svdotext.cxx
Author: alg
Date: Wed Mar 26 11:54:52 2014
New Revision: 1581793
URL: http://svn.apache.org/r1581793
Log:
i124389 for tables refresh TextFrame when OutlinerParaObject changes
Modified:
openoffice/trunk/main/svx/source/svdraw/svdotext.cxx
Modified: openoffice/trunk/main/svx/source/svdraw/svdotext.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/svx/source/svdraw/svdotext.cxx?rev=1581793&r1=1581792&r2=1581793&view=diff
==============================================================================
--- openoffice/trunk/main/svx/source/svdraw/svdotext.cxx (original)
+++ openoffice/trunk/main/svx/source/svdraw/svdotext.cxx Wed Mar 26 11:54:52 2014
@@ -63,6 +63,7 @@
#include <drawinglayer/geometry/viewinformation2d.hxx>
#include <vcl/virdev.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
+#include <svx/svdotable.hxx>
//////////////////////////////////////////////////////////////////////////////
@@ -1500,8 +1501,11 @@ void SdrTextObj::NbcSetOutlinerParaObjec
}
SetTextSizeDirty();
- if (IsTextFrame() && (IsAutoGrowHeight() || IsAutoGrowWidth()))
- { // Textrahmen anpassen!
+
+ // #124389# 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())