aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dw/textblock.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 12e62c47..d2fb7857 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -3054,8 +3054,10 @@ Textblock *Textblock::getTextblockForLine (int firstWord, int lastWord)
if (word->content.type == core::Content::WIDGET_IN_FLOW &&
word->content.widget->instanceOf (Textblock::CLASS_ID) &&
// Exclude inline blocks (see definition of float container).
- word->content.widget->getStyle()->display
- == core::style::DISPLAY_BLOCK) {
+ (word->content.widget->getStyle()->display
+ == core::style::DISPLAY_BLOCK ||
+ word->content.widget->getStyle()->display
+ == core::style::DISPLAY_LIST_ITEM)) {
//printf (" word %d: ", firstWord);
//printWordShort (word);
//printf ("\n");