From fee71647a99a1eabbd795bc02c19bf0d398c736f Mon Sep 17 00:00:00 2001 From: ElenaSubbotina Date: Thu, 7 Aug 2025 17:59:21 +0300 Subject: [PATCH] fix bug #74231 (cherry picked from commit 03e21d19f10d4c2380dde19eb0432e190b16c46f) --- OdfFile/Reader/Format/style_text_properties.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/OdfFile/Reader/Format/style_text_properties.cpp b/OdfFile/Reader/Format/style_text_properties.cpp index 7266b0e249..6ee05320c2 100644 --- a/OdfFile/Reader/Format/style_text_properties.cpp +++ b/OdfFile/Reader/Format/style_text_properties.cpp @@ -352,11 +352,12 @@ void text_format_properties::drawing_serialize(std::wostream & strm, std::wstrin if ((style_text_position_) && (style_text_position_->has_font_size())) { - mul = style_text_position_->font_size().get_value() / 100.0; + mul = style_text_position_->font_size().get_value() / 100.; + mul *= 1.725; //ms 100% - 1.725 } if (fontSizeVal > 0) { - CP_XML_ATTR(L"sz", (int)(fontSizeVal/2. * mul *100 + 0.5));//in pt *100 + CP_XML_ATTR(L"sz", (int)(fontSizeVal/2. * mul * 100 + 0.5)); //in pt *100 } if (fo_font_variant_) {