aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2009-09-19 02:24:29 +0000
committercorvid <corvid@lavabit.com>2009-09-19 02:24:29 +0000
commit4d4740422ef8bf829f9bace8df178f21d11e0585 (patch)
tree5a8ec6291ee9009b5ae4be706f7d2a3042422c32 /dw
parent563b45fd661e275119853b16c9326202511a185e (diff)
decorate/highlight spaces after widgets
Diffstat (limited to 'dw')
-rw-r--r--dw/textblock.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 339a43dc..5d005665 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1402,8 +1402,7 @@ void Textblock::drawLine (Line *line, core::View *view, core::Rectangle *area)
drawText(wordIndex, view, area, xWidget, yWidgetBase);
}
}
- if (word->content.type == core::Content::TEXT &&
- word->effSpace > 0 && wordIndex < line->lastWord - 1) {
+ if (word->effSpace > 0 && wordIndex < line->lastWord - 1) {
drawSpace(wordIndex, view, area, xWidget + word->size.width,
yWidgetBase);
}