diff options
-rw-r--r-- | dw/textblock_linebreaking.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index a150c043..3372485e 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -397,8 +397,9 @@ Textblock::Line *Textblock::addLine (int firstWord, int lastWord, line->boxAscent = misc::max (line->boxAscent, 1); // Calculate offsetCompleteWidget, which includes also floats. + int leftBorder = mustBorderBeRegarded (line) ? newLineLeftBorder : 0; line->offsetCompleteWidget = - misc::max (newLineLeftBorder, + misc::max (leftBorder, getStyle()->boxOffsetX() + innerPadding + (lineIndex == 0 ? line1OffsetEff : 0)) + line->leftOffset; |