diff options
author | Sebastian Geerken <devnull@localhost> | 2013-11-17 16:01:17 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2013-11-17 16:01:17 +0100 |
commit | 0ff5581158180cde9d49c507aacd5d1a4e1a5b53 (patch) | |
tree | 5c4b494fc101481d1667adb6a8bd4b83e9dee1b1 /dw/textblock_linebreaking.cc | |
parent | 4045b3d64203bc758a14926cd6c6ac48c200c10c (diff) |
Some refactoring: floats may be removed related do Length, so usage is reduced.
Diffstat (limited to 'dw/textblock_linebreaking.cc')
-rw-r--r-- | dw/textblock_linebreaking.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock_linebreaking.cc b/dw/textblock_linebreaking.cc index 61e58cdb..226dc3c7 100644 --- a/dw/textblock_linebreaking.cc +++ b/dw/textblock_linebreaking.cc @@ -1102,8 +1102,8 @@ void Textblock::initLine1Offset (int wordIndex) /* don't use text-indent when nesting blocks */ } else { if (core::style::isPerLength(getStyle()->textIndent)) { - indent = misc::roundInt(this->availWidth * - core::style::perLengthVal (getStyle()->textIndent)); + indent = core::style::multiplyWithPerLengthRounded + (this->availWidth, getStyle()->textIndent); } else { indent = core::style::absLengthVal (getStyle()->textIndent); } |