Skip to content

[215_7] 页眉页脚插入图片问题修复#3029

Merged
GatsbyUSTC merged 6 commits intomainfrom
yuki/215_7/fix-image-in-header-footer
Mar 26, 2026
Merged

[215_7] 页眉页脚插入图片问题修复#3029
GatsbyUSTC merged 6 commits intomainfrom
yuki/215_7/fix-image-in-header-footer

Conversation

@Yuki-Nagori
Copy link
Copy Markdown
Contributor

@Yuki-Nagori Yuki-Nagori commented Mar 24, 2026

额外将内嵌图片(ramdisc URL)的加载路径从"临时文件"改为"直接内存读取"

@Yuki-Nagori Yuki-Nagori changed the title 页眉页脚插入图片问题修复 [215_7] 页眉页脚插入图片问题修复 Mar 24, 2026
bool
qt_load_image_from_ramdisc (url u, QImage& im) {
// ramdisc URL: concat(root("ramdisc", data), filename)
url root_part= u[1];
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

这里的引用加一下边界判断的保护?还有下面一行

1. 打开 Mogan,创建新文档
2. 插入内嵌图片到正文(插入 -> 图片 -> 插入图片)
3. 检查:图片正常显示
4. 将图片剪切到页眉(文档 -> 页眉页脚 -> 页眉)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

试了下,这里页眉页脚的图片尺寸有要求,过大展示不了,这里是相对符合预期的对吧

@GatsbyUSTC GatsbyUSTC merged commit aa5751e into main Mar 26, 2026
4 checks passed
@GatsbyUSTC GatsbyUSTC deleted the yuki/215_7/fix-image-in-header-footer branch March 26, 2026 02:55
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