aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-12-08 20:52:17 +0100
committerSebastian Geerken <devnull@localhost>2014-12-08 20:52:17 +0100
commitee9f68d31180573847761cea82bea9454076b297 (patch)
tree10515e880a96938dffcdfe7d27f4e62dfe78b157 /dw/textblock.cc
parent616da8107c14249ea8b3b81205524bdf94b5b2d9 (diff)
Another bugfix.
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc2
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;