aboutsummaryrefslogtreecommitdiff
path: root/dw/ooffloatsmgr.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-10-10 13:32:24 +0200
committerSebastian Geerken <devnull@localhost>2015-10-10 13:32:24 +0200
commit702e965cbf64819b0f0758694dfb0d6903c512c5 (patch)
tree1f41c6cbbf5bd3fc89d7fab453c229e1ab015b73 /dw/ooffloatsmgr.cc
parentb7d71aed37122b8277fee0c39da06c0cd3156742 (diff)
SRDOP: Small cleanup.
Diffstat (limited to 'dw/ooffloatsmgr.cc')
-rw-r--r--dw/ooffloatsmgr.cc6
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;