Skip to content

Commit

Permalink
Fix bug #72875
Browse files Browse the repository at this point in the history
  • Loading branch information
kom-a committed Jan 30, 2025
1 parent 81a4d9c commit 8e4bbb5
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 8e4bbb5

Please sign in to comment.