diff options
author | Sebastian Geerken <devnull@localhost> | 2014-06-12 11:07:21 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-06-12 11:07:21 +0200 |
commit | b068e76b797c92c92b9f363dd7cb1967fdff5b5b (patch) | |
tree | 3ee403025fbac1d92c7dc236c2085ce5f10a1ad1 /dw/textblock.cc | |
parent | 20697624f615da7e4aca96f9777a82d2cacb7cfb (diff) | |
parent | 24f92f1a625dfd9631b5350a56e75205083350df (diff) |
Merge with main repository.
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 f8b00012..b822ffb4 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -2569,10 +2569,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; + } } } } |