## 증상 `samples/2025년 기부·답례품 실적 지자체 보고서_최종형태 확정.hwpx` 7쪽 상단 차트(pi=51) 가 동일 좌표·동일 데이터로 SVG 에 두 번 emit 되어 겹쳐 보임. ## 정량 - pi=51: 빈 문단(text_len=0) + TAC Picture 1개 - SVG: `<image x=75.59 y=94.49 w=643.24 h=289.05>` 가 2회 출력 (md5 동일) ## 원인 1. `src/renderer/layout/paragraph_layout.rs:2008-2049` — 빈 문단(`all_runs_empty`) + TAC offsets 분기에서 Picture 를 인라인 emit. `set_inline_shape_position` 미호출. 2. `src/renderer/layout.rs:2552-2596` (Task #347) — `layout_shape_item` 이 `!has_real_text` 일 때 동일 Picture 를 또 emit. 인라인 등록 체크 없음. ## 수정 방향 (A안) - paragraph_layout 에서 인라인 emit 직후 `set_inline_shape_position` 호출. - layout_shape_item 의 Picture 분기에서 inline_shape_position 이 등록되어 있으면 렌더 스킵, y_offset 갱신만 수행. ## 검증 기준 - p7 SVG 의 pi=51 `<image>` 1회만 emit - 7 핵심 샘플 + form-002 + k-water-rfp + kps-ai 회귀 0 - LAYOUT_OVERFLOW 신규 0건
증상
samples/2025년 기부·답례품 실적 지자체 보고서_최종형태 확정.hwpx7쪽 상단 차트(pi=51) 가 동일 좌표·동일 데이터로 SVG 에 두 번 emit 되어 겹쳐 보임.정량
<image x=75.59 y=94.49 w=643.24 h=289.05>가 2회 출력 (md5 동일)원인
src/renderer/layout/paragraph_layout.rs:2008-2049— 빈 문단(all_runs_empty) + TAC offsets 분기에서 Picture 를 인라인 emit.set_inline_shape_position미호출.src/renderer/layout.rs:2552-2596(Task 표 HorzRelTo::Page/HorzAlign::Right 좌표 계산 오류 (다단 문서) #347) —layout_shape_item이!has_real_text일 때 동일 Picture 를 또 emit. 인라인 등록 체크 없음.수정 방향 (A안)
set_inline_shape_position호출.검증 기준
<image>1회만 emit