https://bugs.documentfoundation.org/show_bug.cgi?id=147989
--- Comment #12 from Lemures Lemniscati <[email protected]> --- > I gave a try with https://gerrit.libreoffice.org/c/core/+/131875 Maybe this kind of conversion is required in other situations (calc, draw, etc.). So, it would be useful to add a defition of convertTwipToMm10() to `include/tools/UnitConversion.hxx`: ---- template <typename N> constexpr auto convertTwipToMm10(N n) { return o3tl::convert(n, o3tl::Length::twip, o3tl::Length::mm10); } ---- And if the defintion is accepted, the new code in https://gerrit.libreoffice.org/c/core/+/131875 can be simply rewritten: ---- // tdf#147989: workaround the accumulation of roundings aPageSize = awt::Size ( 10 * convertTwipToMm10( aTmpSize.Width() ), 10 * convertTwipToMm10( aTmpSize.Height() )); ---- -- You are receiving this mail because: You are the assignee for the bug.
