aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-12 13:18:50 +0200
committerSebastian Geerken <devnull@localhost>2014-09-12 13:18:50 +0200
commit6adaf25af5c3f3e326a6a929afcd4277fcabdcd7 (patch)
tree6716249d71c50a6eceb27b5ffab45d2b026ecd1c /dw/textblock.cc
parent350fa597967a501d5f5c6988ff35a262e50a2a68 (diff)
OOFAwareWidget: (mostly) finished moving stuff from Textblock to OOFAwareWidget.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 5d79f2a5..4ac4bc2a 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -2284,8 +2284,8 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style)
widget->setParent (oofContainer[oofmIndex]);
widget->setGenerator (this);
int oofmSubRef =
- oofContainer[oofmIndex]->outOfFlowMgr[oofmIndex]
- ->addWidgetOOF (widget, this, words->size ());
+ searchOutOfFlowMgr(oofmIndex)->addWidgetOOF (widget, this,
+ words->size ());
widget->parentRef = makeParentRefOOF (oofmIndex, oofmSubRef);
Word *word = addWord (0, 0, 0, 0, style);
@@ -2301,8 +2301,8 @@ void Textblock::addWidget (core::Widget *widget, core::style::Style *style)
// TODO Replace (perhaps) later "textblock" by "OOF aware widget".
if (widget->instanceOf (Textblock::CLASS_ID)) {
for (int i = 0; i < NUM_OOFM; i++)
- oofContainer[i]->outOfFlowMgr[i]
- ->addWidgetInFlow ((Textblock*)widget, this, words->size ());
+ searchOutOfFlowMgr(i)->addWidgetInFlow ((Textblock*)widget, this,
+ words->size ());
}
core::Requisition size;