summaryrefslogtreecommitdiff
path: root/sw/source/core/text/widorp.cxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-02-26 18:43:10 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2019-02-28 11:03:45 +0100
commit2dfffccde81b887752968387ccbdd578b1c4eb78 (patch)
tree7f96c624a38344ffd9c36e8d3766d336ec22e7eb /sw/source/core/text/widorp.cxx
parent9ed367da9cf7ff283762cb79a97238defe85c30c (diff)
sw: fix some borked comments
Change-Id: I18edeff43fcae98514c80d9f2c1594cc2f866e75 Reviewed-on: https://gerrit.libreoffice.org/68401 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'sw/source/core/text/widorp.cxx')
-rw-r--r--sw/source/core/text/widorp.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/sw/source/core/text/widorp.cxx b/sw/source/core/text/widorp.cxx
index a2d8761e968f..1e47974f5340 100644
--- a/sw/source/core/text/widorp.cxx
+++ b/sw/source/core/text/widorp.cxx
@@ -440,20 +440,19 @@ bool WidowsAndOrphans::FindWidows( SwTextFrame *pFrame, SwTextMargin &rLine )
}
// Master to Follow
- // If the Follow contains fewer rows than Widows after formatting,
- // we still can cut off some rows from the Master. If the Orphans
- // rule of the Master hereby comes into effect, we need to enlarge
- // the Frame in CalcPrep() of the Master Frame, as it won't fit into
- // the original page anymore.
- // If the Master Frame can still miss a few more rows, we need to
- // do a Shrink() in the CalcPrep(): the Follow with the Widows then
+ // If the Follow contains fewer lines than Widows after formatting,
+ // we still can move over some lines from the Master. If this triggers
+ // the Orphans rule of the Master, the Master frame must be Grow()n
+ // in its CalcPreps(), such that it won't fit onto its page anymore.
+ // But if the Master Frame can still lose a few lines, we need to
+ // do a Shrink() in the CalcPreps(); the Follow with the Widows then
// moves onto the page of the Master, but remains unsplit, so that
// it (finally) moves onto the next page. So much for the theory!
//
- // We only request one row at a time for now, because a Master's row could
- // result in multiple lines for us.
+ // We only request one line at a time for now, because a Master's line
+ // could result in multiple lines for us.
// Therefore, the CalcFollow() remains in control until the Follow got all
- // necessary rows.
+ // necessary lines.
sal_uInt16 nNeed = 1; // was: nWidLines - rLine.GetLineNr();
// Special case: Master cannot give lines to follow