Commit e1ea0f85 authored by ElenaSubbotina's avatar ElenaSubbotina

OdfFormatReader - fix #32029

parent d548fc64
......@@ -832,7 +832,7 @@ void text_format_properties_content::docx_convert(oox::docx_conversion_context &
if (style_text_position_->has_font_size() && !noNeedSize)
{
const double mul = style_text_position_->font_size().get_value() / 100.0;
if (fontSizeVal > 0)
if (fontSizeVal > 0 && mul > 0)
{
const std::wstring fontSize = boost::lexical_cast<std::wstring>((int)(fontSizeVal * mul + 0.5));
if (!fontSize.empty())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment