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/textblock.cc | |
parent | fd1293cb0debeb0fbda3993e14eb43a2ff2bfd15 (diff) |
Avoid dublicate drawing.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 9bff14d7..df38a8e7 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -1447,8 +1447,9 @@ void Textblock::drawLine (Line *line, core::View *view, core::Rectangle *area) if (word->content.type == core::Content::WIDGET_IN_FLOW) { core::Widget *child = word->content.widget; core::Rectangle childArea; - - if (child->intersects (area, &childArea)) + if (!core::StackingContextMgr::handledByStackingContextMgr + (child) && + child->intersects (area, &childArea)) child->draw (view, &childArea); } else { int wordIndex2 = wordIndex; |