diff options
author | Sebastian Geerken <devnull@localhost> | 2015-10-10 13:32:24 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-10-10 13:32:24 +0200 |
commit | 702e965cbf64819b0f0758694dfb0d6903c512c5 (patch) | |
tree | 1f41c6cbbf5bd3fc89d7fab453c229e1ab015b73 /dw | |
parent | b7d71aed37122b8277fee0c39da06c0cd3156742 (diff) |
SRDOP: Small cleanup.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/ooffloatsmgr.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index 4690eac6..e9a12fef 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -396,15 +396,13 @@ void OOFFloatsMgr::sizeAllocateFloats (Side side) DBG_OBJ_ENTER ("resize.oofm", 0, "sizeAllocateFloats", "%s", side == LEFT ? "LEFT" : "RIGHT"); - Allocation *cba = &containerAllocation; - for (int i = 0; i < list->size (); i++) { Float *vloat = list->get(i); ensureFloatSize (vloat); Allocation childAllocation; - childAllocation.x = cba->x + calcFloatX (vloat); - childAllocation.y = cba->y + vloat->yReal; + childAllocation.x = containerAllocation.x + calcFloatX (vloat); + childAllocation.y = containerAllocation.y + vloat->yReal; childAllocation.width = vloat->size.width; childAllocation.ascent = vloat->size.ascent; childAllocation.descent = vloat->size.descent; |