diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-11 13:13:10 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-11 13:13:10 +0200 |
commit | 24f92f1a625dfd9631b5350a56e75205083350df (patch) | |
tree | 9aef4cb3644304e24138ac8f7ac83712a2ee485a /dw/textblock.cc | |
parent | f108a0bef057ca4b8c239b99ee9efd14e5d71f37 (diff) |
'getWidgetAtPoint' is only called for allocated widgets.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 590ffb60..beb3f3f8 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -2713,10 +2713,12 @@ core::Widget *Textblock::getWidgetAtPoint(int x, int y, int level) if (word->content.type == core::Content::WIDGET_IN_FLOW) { core::Widget * childAtPoint; - childAtPoint = word->content.widget->getWidgetAtPoint (x, y, - level + 1); - if (childAtPoint) { - return childAtPoint; + if (word->content.widget->wasAllocated ()) { + childAtPoint = word->content.widget->getWidgetAtPoint (x, y, + level + 1); + if (childAtPoint) { + return childAtPoint; + } } } } |