aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-04-11 16:04:58 +0200
committerSebastian Geerken <devnull@localhost>2013-04-11 16:04:58 +0200
commit1790b0b654f49d11aefc1900442fe350415af77e (patch)
tree5fdb0686c36c5fd10b28ae62b0fa444d0c180a49
parent81a71606973ff10718ffd198b6d4b90c3c6e0616 (diff)
Fixed a segfault.
-rw-r--r--dw/textblock.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 37fb43e0..e3c1b33c 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -2358,7 +2358,7 @@ void Textblock::borderChanged (int y, Widget *vloat)
// considered.
for (int wordIndex =
lines->size() > 0 ? lines->getLastRef()->lastWord + 1 : 0;
- !found && wordIndex <= words->size(); wordIndex++) {
+ !found && wordIndex < words->size(); wordIndex++) {
Word *word = words->getRef (wordIndex);
//printf (" word %d: ", wordIndex);
//printWordShort (word);