aboutsummaryrefslogtreecommitdiff
path: root/dw/outofflowmgr.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-03-14 21:16:35 +0100
committerSebastian Geerken <devnull@localhost>2013-03-14 21:16:35 +0100
commitadc95374e65635d5e1251fc6eed4818a9e22df4a (patch)
tree2eece6d1f2d678dacb48de3b13d7ed75d4906ea6 /dw/outofflowmgr.cc
parent1eba625e1ab66a51c57b1e44e45726678bf3941f (diff)
Some cleanup.
Diffstat (limited to 'dw/outofflowmgr.cc')
-rw-r--r--dw/outofflowmgr.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc
index b866ec50..519cf8b0 100644
--- a/dw/outofflowmgr.cc
+++ b/dw/outofflowmgr.cc
@@ -606,8 +606,13 @@ void OutOfFlowMgr::tellPositionOrNot (Widget *widget, int y, bool positioned)
listSame->change (vloat);
- // Only this float has been changed (see above), so only this float
- // has to be tested against all textblocks.
+ checkCoverage (vloat, oldPositioned, oldY);
+}
+
+void OutOfFlowMgr::checkCoverage (Float *vloat, bool oldPositioned, int oldY)
+{
+ // Only this float has been changed (see tellPositionOrNot), so
+ // only this float has to be tested against all textblocks.
if (vloat->generatingBlock->wasAllocated () &&
// A change from "no position" to "no position" is uninteresting.
!(oldPositioned && !vloat->positioned)) {