diff options
author | Radek Doulik <rodo@novell.com> | 2011-03-30 17:42:19 +0200 |
---|---|---|
committer | Radek Doulik <rodo@novell.com> | 2011-03-30 17:42:59 +0200 |
commit | fd22dcf3dcdcbdfddad5b97f9803f075f8439687 (patch) | |
tree | feb02b36671671f4f95a8ab70006c5e21120feb0 /svx | |
parent | f62ec4cda204534354e51d920d21231ddbfe8ba3 (diff) |
change autofit feature so that it ignores trailing empty paragraphs
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdotext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdotext.cxx b/svx/source/svdraw/svdotext.cxx index d12495f637..2d58ef495b 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(); |