fix: 표 셀 검정 배경 렌더링 — pattern_type 검사 누락 수정 (closes #782)#788
Closed
oksure wants to merge 1 commit into
Closed
Conversation
style_resolver의 fill_color 판정에 pattern_type 검사 누락. pattern_type > 0 (패턴 채우기)인 경우 background_color는 패턴 배경이지 셀 단색 fill이 아님 — fill_color=None으로 처리해야 함. layout/utils.rs는 이미 동일 패턴 (pattern_type > 0 || alpha != 0 → None) 적용 중이었으나, style_resolver.rs는 alpha만 검사 → 0x00000000(검정)이 fill_color로 통과되어 표 셀이 검정 배경으로 렌더링.
Contributor
There was a problem hiding this comment.
Pull request overview
HWP 문서에서 **패턴 채우기(border fill의 pattern_type > 0)**가 적용된 표 셀이 단색 채우기로 잘못 해석되어 검정 배경으로 렌더링되는 문제를 수정합니다. 도형(drawing) 경로에서 이미 적용 중인 로직과 동일하게, 표 셀(BorderFill) 경로에서도 pattern_type을 함께 검사해 단색 fill 색상 산출을 방지합니다.
Changes:
resolve_single_border_style에서fill_color결정 시pattern_type > 0이면 단색 fill로 처리하지 않도록 조건 추가- 패턴 채우기 케이스에 대한 주석 보강
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
edwardkim
added a commit
that referenced
this pull request
May 10, 2026
PR #745 (5/10 머지) 영역 영역 작업지시자 시각 검증 영역 발견 결함 (Issue #782) 정정 — samples/aift.hwp 페이지 2 영역 영역 일부 표 셀 검정 단색 fill. 본질: style_resolver.rs (표 셀 경로) 영역 영역 pattern_type 검사 누락. layout/utils.rs (도형 경로) 영역 영역 이미 동일 가드 정합 영역 영역 비대칭 본질. 정정 (style_resolver.rs +2/-1, 1 라인 가드): - 기존: alpha 만 검사 — if (s.background_color >> 24) != 0 { None } - 수정: pattern_type + alpha 검사 — if s.pattern_type > 0 || (s.background_color >> 24) != 0 { None } 영향: pattern_type > 0 시 background_color 영역 영역 패턴 배경색 (셀 단색 fill 아님) → 검정 단색 fill 차단. 검증: - cargo build/test/clippy --release ALL GREEN - 광범위 sweep 170/170 same (sweep fixture aift 영역 영역 다른 페이지 영역 영역 영향 부재) - aift.hwp 페이지 2 SVG export 영역 영역 rect 검정 fill 0회 입증 (출력: output/svg/pr788/aift_002.svg) - 작업지시자 시각 판정 ✅ 통과 (VSCode SVG 뷰어 dark mode 배경 영역 영역 검정 보였음 — 결함 부재) closes #782
Owner
|
@oksure 검토 완료했습니다. 감사합니다. 처리 결과Merge commit: 본질
검증
closes #782. 5/11 사이클 3번째 PR — 수고하셨습니다. |
Owner
|
Merged. Merge commit: 329698f |
edwardkim
added a commit
that referenced
this pull request
May 10, 2026
edwardkim
added a commit
that referenced
this pull request
May 10, 2026
5/10 + 5/11 사이클 누적 — 외부 기여자 다수 PR 30+ 머지. Cargo.toml + rhwp-vscode/package.json + npm/editor/package.json + rhwp-studio/package.json: 0.7.10 → 0.7.11 rhwp-vscode/CHANGELOG.md: [0.7.11] 항목 추가 핵심 변경: - Skia native raster P8 (#761) + P9 (#769) — Layer IR contract hardening + text replay parity - HWP3 native 렌더링 (#753) — hwp3-sample10 8 단계 정정 + Git LFS pdf-large/ 신규 - 페이지네이션 정정 (#778) — Task #703 다단 컬럼 분배 회귀 정정 - rhwp-studio 인터랙션 (PR #781/#786/#787/#788) — scrollbar/수식/표 셀/도구 모음 결함 정정 - rhwp-studio editor 신규 기능 (PR #728/#748/#750/#760 등) — 표 편집 Undo/Redo + 다단 설정 + 다수 단축키
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
HWP 문서의 표 셀이 검정 배경으로 렌더링되는 문제 수정.
원인
style_resolver.rs의resolve_single_border_style에서 셀fill_color결정 시pattern_type검사 누락:pattern_type > 0일 때background_color는 패턴의 배경색이지 셀의 단색 fill이 아님.layout/utils.rs(도형 경로)는 이미 동일 로직 적용 중이었으나style_resolver.rs(표 셀 경로)만 누락.영향
samples/aift.hwp페이지 2 등 패턴 채우기 사용 표에서 검정 배경 제거검증
cargo test --release✅ ALL GREENcargo clippy -- -D warnings✅ 경고 없음감사합니다.