diff options
author | Sebastian Geerken <devnull@localhost> | 2014-12-08 20:52:17 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-12-08 20:52:17 +0100 |
commit | ee9f68d31180573847761cea82bea9454076b297 (patch) | |
tree | 10515e880a96938dffcdfe7d27f4e62dfe78b157 | |
parent | 616da8107c14249ea8b3b81205524bdf94b5b2d9 (diff) |
Another bugfix.
-rw-r--r-- | dw/textblock.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 20c114fa..f5308d8c 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -2765,7 +2765,7 @@ core::Widget *Textblock::getWidgetAtPointLevel (int x, int y, int lineIndex = findLineIndexWhenAllocated (y - allocation.y); - if (lineIndex >= 0 || lineIndex < lines->size ()) { + if (lineIndex >= 0 && lineIndex < lines->size ()) { Line *line = lines->getRef (lineIndex); if (osi->index > line->lastWord) osi->index = line->lastWord; |