aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-11-13 20:14:11 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2012-11-13 20:14:11 +0100
commit6007e29a71c6465430db23ee7c3d33fdb82aae95 (patch)
tree8cef42857efa54753f94a4af39760a1bc9a98e76 /dw/textblock.cc
parentb56864d7c883b204f55bf31eb09fc30a68ab4f10 (diff)
fix disappearing hyphens when scrolling horizontally
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 dfe3d17c..045126d9 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1107,7 +1107,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) {