diff options
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r-- | dw/textblock.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index d4cc9734..fae2613a 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -1437,12 +1437,12 @@ int Textblock::findLineIndex (int y) while ( step > 1 ) { index = low + step; if (index <= maxIndex && - lineYOffsetWidgetI (index) < y) + lineYOffsetWidgetI (index) <= y) low = index; step = (step + 1) >> 1; } - if (low < maxIndex && lineYOffsetWidgetI (low + 1) < y) + if (low < maxIndex && lineYOffsetWidgetI (low + 1) <= y) low++; /* |