ObeoNetwork / M2Doc

The M2Doc technology enables the generation of Office Open XML documents from models.
http://obeonetwork.github.io/M2Doc/
Eclipse Public License 2.0
39 stars 22 forks source link

Figures inserted inside a template construct have incorrect index and are not picked up by the table of figures #443

Closed flatombe closed 1 month ago

flatombe commented 3 years ago

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please have a look to the support pages of our website : http://m2doc.org/support/

Current behavior

When a Word figure is inserted thanks to a template construct (m:template), its index is not correct (several figures end up with the same index) and it is not being picked up by the table of figures (neither with option "updateFields" in the configuration nor with a manual update of the table of figures). Current workaround is to, unfortunately, inline the contents of the template construct.

Expected behavior

Contents inserted thanks to a template construct should not be different from if they were inlined. If it should, then the documentation should mention it.

Minimal reproduction of the problem with instructions

Environment


M2Doc version: 3.2.0.202105181517
Eclipse version: Capella 1.4.1.202006301603
Platform version:  Windows 10

Others:

ylussaud commented 1 month ago

This is a duplicate of issue #412.