Adding a picture with the position_type set to DrawingPositionType::Anchor causes the docx generation to fail with the error should end: LastElementNameNotAvailable. This error is currently reproducible with the image_floating example.
Reproduced step
Run the image_floating example with cargo run --example image_floating
Watch as the example panics with the error should end: LastElementNameNotAvailable
Expected behavior
The example not to panic
Actual behavior
The example panics with the message thread 'main' panicked at 'should end: LastElementNameNotAvailable', docx-core\src\xml_builder\mod.rs:119:14
Describe the bug
Adding a picture with the
position_type
set toDrawingPositionType::Anchor
causes the docx generation to fail with the errorshould end: LastElementNameNotAvailable
. This error is currently reproducible with theimage_floating
example.Reproduced step
image_floating
example withcargo run --example image_floating
should end: LastElementNameNotAvailable
Expected behavior
The example not to panic
Actual behavior
The example panics with the message
thread 'main' panicked at 'should end: LastElementNameNotAvailable', docx-core\src\xml_builder\mod.rs:119:14
Desktop