aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock_linebreaking.cc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-11-17 16:01:17 +0100
committerSebastian Geerken <devnull@localhost>2013-11-17 16:01:17 +0100
commit0ff5581158180cde9d49c507aacd5d1a4e1a5b53 (patch)
tree5c4b494fc101481d1667adb6a8bd4b83e9dee1b1 /dw/textblock_linebreaking.cc
parent4045b3d64203bc758a14926cd6c6ac48c200c10c (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.cc4
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);
}