diff options
author | corvid <corvid@lavabit.com> | 2009-11-05 01:08:35 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2009-11-05 01:08:35 +0000 |
commit | bae3ae510e46fea2a70d273da64b88bedc248a65 (patch) | |
tree | 967869bf55a2a460cd7f02f5a197392f229be3f0 /dw | |
parent | 2b70a4bb1afb9c9b31ffbf4bb29a6e5e26433b10 (diff) |
listitem alignment
Diffstat (limited to 'dw')
-rw-r--r-- | dw/textblock.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc index 91f31d1f..d18d0dc8 100644 --- a/dw/textblock.cc +++ b/dw/textblock.cc @@ -1041,7 +1041,9 @@ void Textblock::wordWrap(int wordIndex) if (leftOffset < 0) leftOffset = 0; - if (listItem && lastLine == lines->getRef (0)) { + if (listItem && + getStyle()->listStyleType != core::style::LIST_STYLE_TYPE_NONE && + lastLine == lines->getRef (0)) { /* List item markers are always on the left. */ lastLine->leftOffset = 0; words->getRef(0)->effSpace = words->getRef(0)->origSpace + leftOffset; |