diff options
author | Sebastian Geerken <devnull@localhost> | 2015-01-30 19:27:16 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-01-30 19:27:16 +0100 |
commit | b1e34672ecbe28c18462cd1b02ba0b2cfc7f772b (patch) | |
tree | 8812e9c6b89b4099129d00e8a123ea1f501943de /dw/ooffloatsmgr.cc | |
parent | 76544475ea4a8578351a818068657a9bd6cd5a06 (diff) |
Relative positions, part 1.
Diffstat (limited to 'dw/ooffloatsmgr.cc')
-rw-r--r-- | dw/ooffloatsmgr.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index 5b6c8755..c509af8d 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -1421,6 +1421,11 @@ int OOFFloatsMgr::addWidgetOOF (Widget *widget, OOFAwareWidget *generatingBlock, return subRef; } +void OOFFloatsMgr::calcWidgetRefSize (Widget *widget, Requisition *size) +{ + size->width = size->ascent = size->descent = 0; +} + void OOFFloatsMgr::moveExternalIndices (OOFAwareWidget *generatingBlock, int oldStartIndex, int diff) { @@ -1434,8 +1439,8 @@ void OOFFloatsMgr::moveExternalIndices (SortedFloatsVector *list, { // Could be faster with binary search, but the GB (not CB!) lists // should be rather small. - for (int i = 0; i < list->size(); i++) { - Float *vloat = list->get(i); + for (int i = 0; i < list->size (); i++) { + Float *vloat = list->get (i); if (vloat->externalIndex >= oldStartIndex) { vloat->externalIndex += diff; DBG_OBJ_SET_NUM_O (vloat->getWidget (), "<Float>.externalIndex", |