summaryrefslogtreecommitdiff
path: root/svx/source/svdraw/svdotext.cxx
diff options
context:
space:
mode:
authorRadek Doulik <rodo@novell.com>2011-03-30 17:42:19 +0200
committerRadek Doulik <rodo@novell.com>2011-03-30 17:42:59 +0200
commit92016b9b80af2e78f051939018e7b05d56165206 (patch)
treeb0c41b550c662beae4a18ac606cabd6073d13f8a /svx/source/svdraw/svdotext.cxx
parentd3f7b458004af65550e847ffd84cdaab7162b8ed (diff)
change autofit feature so that it ignores trailing empty paragraphs
Diffstat (limited to 'svx/source/svdraw/svdotext.cxx')
-rw-r--r--svx/source/svdraw/svdotext.cxx2
1 files changed, 1 insertions, 1 deletions
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();