aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-13 23:00:11 +0100
committerSebastian Geerken <devnull@localhost>2012-11-13 23:00:11 +0100
commitc762eb9ab50bcc5d35194a82cf7837dbd3604984 (patch)
tree7217bfbc1bb7423e5c12769b6f51fd5f7bdb7c9a /dw/textblock.cc
parent3b53c5940970f002e2e77b347802f8e2c9684904 (diff)
parent6007e29a71c6465430db23ee7c3d33fdb82aae95 (diff)
Merge.
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 9adc4aee..213594d3 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1120,7 +1120,7 @@ void Textblock::drawLine (Line *line, core::View *view, core::Rectangle *area)
Word *word = words->getRef(wordIndex);
int wordSize = word->size.width;
- if (xWidget + word->size.width + word->effSpace >= area->x) {
+ if (xWidget + wordSize + word->hyphenWidth + word->effSpace >= area->x) {
if (word->content.type == core::Content::TEXT ||
word->content.type == core::Content::WIDGET) {