Skip to content

Commit

Permalink
Merge pull request 'Fix bug #72875' (#226) from fix/bug72875 into hot…
Browse files Browse the repository at this point in the history
  • Loading branch information
ElenaSubbotina committed Feb 11, 2025
2 parents 4b4845c + 8e4bbb5 commit 7bfcea0
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions OdfFile/Reader/Format/draw_shapes_docx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,7 @@ void draw_line::docx_convert(oox::docx_conversion_context & Context)
}

void draw_path::docx_convert(oox::docx_conversion_context & Context)
{
bool in_paragraph = !Context.get_paragraph_state();

if (in_paragraph)
{
Context.start_paragraph();
Context.add_new_run();
}

{
//if (Context.get_drawing_context().get_current_level() >0 )return;
if (Context.get_drawing_context().get_current_level() > 0 && !Context.get_drawing_context().in_group() )
{
Expand All @@ -217,12 +209,6 @@ void draw_path::docx_convert(oox::docx_conversion_context & Context)
//...
reset_svg_path();
draw_shape::docx_convert(Context);

if (in_paragraph)
{
Context.finish_run();
Context.finish_paragraph();
}
}

void draw_connector::docx_convert(oox::docx_conversion_context & Context)
Expand Down

0 comments on commit 7bfcea0

Please sign in to comment.