diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-24 21:45:37 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-24 21:45:37 +0200 |
commit | bcebc40e56a88fac5fbdd4cc04d74d53ac6ec3ff (patch) | |
tree | 004667ce96691a83841c2fb644328037efa38e9f /dw/ooffloatsmgr.cc | |
parent | fd1293cb0debeb0fbda3993e14eb43a2ff2bfd15 (diff) |
Avoid dublicate drawing.
Diffstat (limited to 'dw/ooffloatsmgr.cc')
-rw-r--r-- | dw/ooffloatsmgr.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dw/ooffloatsmgr.cc b/dw/ooffloatsmgr.cc index 7850b18f..eecd4faa 100644 --- a/dw/ooffloatsmgr.cc +++ b/dw/ooffloatsmgr.cc @@ -1284,10 +1284,11 @@ void OOFFloatsMgr::drawFloats (SortedFloatsVector *list, View *view, // first float fitting into the area, and iterate until one is // found below the area. for (int i = 0; i < list->size(); i++) { - Float *vloat = list->get(i); + Widget *childWidget = list->get(i)->getWidget (); Rectangle childArea; - if (vloat->getWidget()->intersects (area, &childArea)) - vloat->getWidget()->draw (view, &childArea); + if (!StackingContextMgr::handledByStackingContextMgr (childWidget) && + childWidget->intersects (area, &childArea)) + childWidget->draw (view, &childArea); } } |