aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-08-15 16:54:45 +0200
committerSebastian Geerken <devnull@localhost>2014-08-15 16:54:45 +0200
commit7588f16d74056a3366bb691e4e5c36573a77795d (patch)
treea7cbacfe5749a3f887bcdd4a0c5903f22e1b2482
parent6c95b6c48b8f658fbac18e192123e5a9c2f45088 (diff)
In regard to floats, list items are treated like textblocks (again).
-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");