From 92016b9b80af2e78f051939018e7b05d56165206 Mon Sep 17 00:00:00 2001 From: Radek Doulik <rodo@novell.com> Date: Wed, 30 Mar 2011 17:42:19 +0200 Subject: change autofit feature so that it ignores trailing empty paragraphs --- svx/source/svdraw/svdotext.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index 84da2a35173f..96b77a2f13ed 100644 --- a/svx/source/svdraw/svdotext.cxx +++ b/svx/source/svdraw/svdotext.cxx @@ -1445,7 +1445,7 @@ void SdrTextObj::ImpAutoFitText( SdrOutliner& rOutliner, const Size& rTextSize, const size_t aStretchArySize=sizeof(aOldStretchXVals)/sizeof(*aOldStretchXVals); for(unsigned int i=0; i<aStretchArySize; ++i) { - const Size aCurrTextSize = rOutliner.CalcTextSize(); + const Size aCurrTextSize = rOutliner.CalcTextSizeNTP(); double fFactor(1.0); if( bIsVerticalWriting ) fFactor = double(rTextSize.Width())/aCurrTextSize.Width(); -- cgit