sw/source/uibase/dochdl/swdtflvr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 749a14a7cee3ef6353b99d25422f996518c2284c Author: Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk> AuthorDate: Wed Aug 11 20:00:02 2021 +0900 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Wed Aug 11 14:47:33 2021 +0200 sw: fixed regression from [1] - OLE height in mm instead 100th mm OLE height is 3cm, but converted to 30 (mm) where the Size is expected to be in 100th mm. This uses the correct value of 3000, which correcponds to 30mm and the expected 3cm. [1] 0d356f93e4d5ca073a6e866168f76103c60c6a45 Change-Id: I77cab1641b948a8839da543c12835c5c64825a5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120316 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index b66f251e55c7..cb32fb1f852e 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -139,7 +139,7 @@ constexpr tools::Long constOleWidthInMm = 210 - 2 * lMinBorderInMm; constexpr Size constOleSize100mm( constOleWidthInMm * 100, // convert from mm to 100mm - 30 // 3 cm + 3000 // 3 cm ); constexpr Size constOleSizeTwip = o3tl::convert(constOleSize100mm, o3tl::Length::mm100, o3tl::Length::twip);