fix/bug51597

fix bug when document convert from odt to docx and docx to odt and after this document cells width will smaller then before convertation.
This commit is contained in:
Timofey Derevyankin
2025-10-14 12:33:13 +03:00
parent 26b598784e
commit 1d88830b38
2 changed files with 17 additions and 4 deletions

View File

@ -527,8 +527,10 @@ void odf_table_context::change_current_column_width(double width)
else
{
double old_width = column_properties->attlist_.style_column_width_->get_value_unit(length::pt);
if (old_width < width/* && width < impl_->odf_context_->page_layout_context()->current_page_width_*/ && old_width < 9)
if (old_width < width/* && width < impl_->odf_context_->page_layout_context()->current_page_width_*/ && old_width < 5) // check bug 51597
{
column_properties->attlist_.style_column_width_ = length_;
}
}
}