mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
fix/bug52250
fix bug with unexpected indents
This commit is contained in:
@ -2211,13 +2211,13 @@ int docx_conversion_context::process_paragraph_attr(odf_reader::text::paragraph_
|
||||
{
|
||||
odf_reader::list_style_container & list_styles = root()->odf_context().listStyleContainer();
|
||||
|
||||
if (list_style_stack_.empty() && list_styles.outline_style() && !get_table_context().in_table())
|
||||
if (!list_style_stack_.empty() && list_styles.outline_style() && !get_table_context().in_table())
|
||||
{
|
||||
output_stream() << L"<w:numPr>";
|
||||
output_stream() << L"<w:ilvl w:val=\"" << *outline_level - 1 << L"\"/>";
|
||||
output_stream() << L"<w:numId w:val=\"" << list_styles.id_outline() << L"\"/>";
|
||||
output_stream() << L"<w:ilvl w:val=\"" << *outline_level - 1 << L"\"/>";
|
||||
output_stream() << L"<w:numId w:val=\"" << list_styles.id_outline() << L"\"/>";
|
||||
output_stream() << L"</w:numPr>";
|
||||
}
|
||||
}
|
||||
output_stream() << L"<w:outlineLvl w:val=\"" << *outline_level << L"\"/>";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user