aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-04-21 12:06:23 +0200
committerSebastian Geerken <devnull@localhost>2013-04-21 12:06:23 +0200
commitc17a05f5b6e29744bcdc5aea50db264e5dc1ec91 (patch)
treede92dd25062239b1a6454e244905f563f5f932a7
parentc9b7828d14dfa3c45e8b5f546bdddc3b90afe114 (diff)
Removed a wrong optimization.
-rw-r--r--dw/outofflowmgr.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc
index e998770b..6fbbd47a 100644
--- a/dw/outofflowmgr.cc
+++ b/dw/outofflowmgr.cc
@@ -742,9 +742,13 @@ void OutOfFlowMgr::tellPosition (Widget *widget, int yReq)
// containingBlock, widget, widget->getClassName (), yReq);
//printf (" this float: %s\n", vloat->toString());
- if (yReq == vloat->yReq)
+ // The following optimization is wrong; e. g. does not take into
+ // account that the previous float may have change its
+ // size. "yReal" should rather be checked below, this should be
+ // deleted.
+ /*if (yReq == vloat->yReq)
// Nothing changed.
- return;
+ return;*/
SortedFloatsVector *listSame, *listOpp;
getFloatsLists (vloat, &listSame, &listOpp);