diff options
author | Sebastian Geerken <devnull@localhost> | 2013-04-21 18:23:29 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-04-21 18:23:29 +0200 |
commit | cc6861088d3b8e800ebbbfce963c861770d2911b (patch) | |
tree | e6a682114d7f699c959c67abd46d3e70f145f732 | |
parent | c17a05f5b6e29744bcdc5aea50db264e5dc1ec91 (diff) |
Fixed Float::inCBList.
-rw-r--r-- | dw/outofflowmgr.cc | 13 | ||||
-rw-r--r-- | dw/outofflowmgr.hh | 4 |
2 files changed, 12 insertions, 5 deletions
diff --git a/dw/outofflowmgr.cc b/dw/outofflowmgr.cc index 6fbbd47a..95898f0a 100644 --- a/dw/outofflowmgr.cc +++ b/dw/outofflowmgr.cc @@ -41,6 +41,7 @@ OutOfFlowMgr::Float::Float (OutOfFlowMgr *oofm, Widget *widget, yReq = yReal = size.width = size.ascent = size.descent = 0; dirty = true; + inCBList = false; } void OutOfFlowMgr::Float::intoStringBuffer(StringBuffer *sb) @@ -72,6 +73,8 @@ void OutOfFlowMgr::Float::intoStringBuffer(StringBuffer *sb) sb->appendInt (size.descent); sb->append (" }, dirty = "); sb->appendBool (dirty); + sb->append (" }, inCBList = "); + sb->appendBool (inCBList); sb->append (" }"); } @@ -583,6 +586,7 @@ void OutOfFlowMgr::addWidget (Widget *widget, Textblock *generatingBlock, if (wasAllocated (generatingBlock)) { leftFloatsCB->put (vloat); + vloat->inCBList = true; //printf ("[%p] adding left float %p (%s %p) to CB list\n", // containingBlock, vloat, widget->getClassName(), widget); } else { @@ -606,6 +610,7 @@ void OutOfFlowMgr::addWidget (Widget *widget, Textblock *generatingBlock, if (wasAllocated (generatingBlock)) { rightFloatsCB->put (vloat); + vloat->inCBList = true; //printf ("[%p] adding right float %p (%s %p) to CB list\n", // containingBlock, vloat, widget->getClassName(), widget); } else { @@ -755,9 +760,11 @@ void OutOfFlowMgr::tellPosition (Widget *widget, int yReq) ensureFloatSize (vloat); //printf (" ensured size: %s\n", vloat->toString()); - //printf (" all floats on same side:\n"); + //printf (" all floats on same side (%s):\n", + // listSame->type == SortedFloatsVector::GB ? "GB" : "CB"); //for (int i = 0; i < listSame->size(); i++) - // printf (" %d: %s\n", i, listSame->get(i)->toString()); + // printf (" %d: %p, %s\n", i, listSame->get(i), + // listSame->get(i)->toString()); int oldY = vloat->yReal; @@ -1236,7 +1243,7 @@ void OutOfFlowMgr::ensureFloatSize (Float *vloat) // vloat, vloat->widget->getClassName(), vloat->widget, // vloat->size.width, vloat->size.ascent, vloat->size.descent); - vloat->dirty = vloat->inCBList = false; + vloat->dirty = false; } } diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh index 6e3d92f8..8811b021 100644 --- a/dw/outofflowmgr.hh +++ b/dw/outofflowmgr.hh @@ -82,12 +82,12 @@ private: class SortedFloatsVector: private lout::container::typed::Vector<Float> { public: - enum Type { GB, CB }; + enum Type { GB, CB } type; /* Only used for debugging; may be removed + later. */ private: OutOfFlowMgr *oofm; Side side; - Type type; // Only used for debugging; may be removed later. public: inline SortedFloatsVector (OutOfFlowMgr *oofm, Side side, Type type) : |