summaryrefslogtreecommitdiff
path: root/svx
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
commitfd22dcf3dcdcbdfddad5b97f9803f075f8439687 (patch)
treefeb02b36671671f4f95a8ab70006c5e21120feb0 /svx
parentf62ec4cda204534354e51d920d21231ddbfe8ba3 (diff)
change autofit feature so that it ignores trailing empty paragraphs
Diffstat (limited to 'svx')
-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 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();