This issue has been created
 
 
Numbered Content Application / cid:jira-generated-image-avatar-5d7a07e7-977a-4f7f-ae09-06a00fa6ebf5 NCAPP-89 Open

Bad counter value for figures when activating both figure and heading numbering

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-e323102f-4cc7-4489-ac14-54ef6014860a Vincent Massol created this issue on 12/Nov/24 17:14
 
Summary: Bad counter value for figures when activating both figure and heading numbering
Issue Type: cid:jira-generated-image-avatar-5d7a07e7-977a-4f7f-ae09-06a00fa6ebf5 Bug
Affects Versions: 1.10.2
Assignee: Unassigned
Attachments: image001.png, image002.png
Components: Figures - API, Headings - API
Created: 12/Nov/24 17:14
Priority: cid:jira-generated-image-static-major-9fc0f5b1-ecb8-48fd-8eb1-7f57d40a13ea Major
Reporter: Vincent Massol
Description:

To reproduce:

  • Install "Numbered Figures App" and "Numbered Headings App" extensions
  • Create a page with the following content
    (% class="marvin-figure-placement" %)(((
    (% class="marvin-figure-frame" %)(((
    {{figure type="figure"}}
    {{figureCaption}}{{id name="F1"/}}Beautiful Image{{/figureCaption}}
    
    XXX
    {{/figure}}
    )))
    )))
    
    (% class="marvin-figure-placement" %)(((
    (% class="marvin-figure-frame" %)(((
    {{figure type="figure"}}
    {{figureCaption}}{{id name="F2"/}}Even More Beautiful Image{{/figureCaption}}
    
    YYY
    {{/figure}}
    )))
    ))) 
    
  • Activate figure numbering (by adding an xobject of type NumberedFigures.Code.NumberedFiguresClass. Notice that the figures are correctly numbered 1 and 2: _thumb_42915.png
  • Activate heading numbering (by using the Information extra tab). Notice that the figures are now incorrectly numbered 1 and 1: _thumb_42914.png