Skip to content

[0113] 修复子表格 env_rects 与父单元格边框重叠问题#3340

Merged
da-liii merged 5 commits into
mainfrom
da/0113/subtable_line
May 13, 2026
Merged

[0113] 修复子表格 env_rects 与父单元格边框重叠问题#3340
da-liii merged 5 commits into
mainfrom
da/0113/subtable_line

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 13, 2026

问题

在无框表格中嵌套子表格时,当光标位于子表格内部,子表格的编辑辅助线(env_rects)最外层边框会与父单元格的边框在同一位置绘制,导致视觉上线条加粗/重叠。

修复

compute_env_rects() 中检测当前处理的 table 是否为 subtable 的内部 table,若是则只绘制子表格内部单元格边框,跳过最外层四条边(上、下、左、右),避免与父单元格边框重叠。

测试

  • 打开 TeXmacs/tests/tmu/0113.tmu
  • 确认子表格内部边框保留,最外层边框不再与父单元格边框重叠

🤖 Generated with Claude Code

da-liii and others added 5 commits May 13, 2026 14:10
当光标位于子表格内部时,子表格的编辑辅助线(env_rects)
最外层边框会与父单元格的边框在同一位置绘制,导致线条加粗。

修复方式:在 compute_env_rects() 中检测当前处理的 table
是否为 subtable 的内部 table,若是则只绘制子表格内部单元格
边框,跳过最外层四条边(上、下、左、右),避免与父单元格
边框重叠。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@JackYansongLi JackYansongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii da-liii merged commit d98c2ec into main May 13, 2026
5 checks passed
@da-liii da-liii deleted the da/0113/subtable_line branch May 13, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants