summaryrefslogtreecommitdiff
path: root/sw/source/core/text/widorp.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 11:42:50 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-20 17:55:01 +0000
commite8260df1d67baf807771cd5c740164a227856515 (patch)
treefbf45c4cdede1d4fcb880342e544fa58cb23e3a6 /sw/source/core/text/widorp.cxx
parent52350c15b37573e160f25d39565f577fc7189955 (diff)
loplugin:expandablemethodds in sw(part2)
Change-Id: Idc2118899a8063099b66c0f5db40d8402db063d1 Reviewed-on: https://gerrit.libreoffice.org/30083 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/widorp.cxx')
-rw-r--r--sw/source/core/text/widorp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/text/widorp.cxx b/sw/source/core/text/widorp.cxx
index 02dea259920c..6d8c4f569bf2 100644
--- a/sw/source/core/text/widorp.cxx
+++ b/sw/source/core/text/widorp.cxx
@@ -522,7 +522,7 @@ bool WidowsAndOrphans::WouldFit( SwTextMargin &rLine, SwTwips &rMaxHeight, bool
// Widow lines would have wrong width.
// 2. Test formatting is only done up to the given space.
// we do not have any lines for widows at all.
- if( bTst || nLineCnt - nMinLines >= GetWidowsLines() )
+ if( bTst || nLineCnt - nMinLines >= nWidLines )
{
if( rMaxHeight >= nLineSum )
{