mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🐛 Exporting PDF hangs after focusing heading block Fix https://github.com/siyuan-note/siyuan/issues/7848
This commit is contained in:
parent
2de23a977b
commit
b7e1dc4a36
2 changed files with 3 additions and 1 deletions
|
|
@ -628,7 +628,9 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
|
||||||
first.InsertBefore(node)
|
first.InsertBefore(node)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ret.Path = bt.Path
|
||||||
ret.HPath = bt.HPath
|
ret.HPath = bt.HPath
|
||||||
|
ret.Box = bt.BoxID
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ import (
|
||||||
|
|
||||||
func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
|
func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
|
||||||
ret = rootTree
|
ret = rootTree
|
||||||
rootBlock := &Block{Box: rootTree.Box, ID: rootTree.ID, Path: rootTree.Path}
|
rootBlock := &Block{Box: rootTree.Box, ID: rootTree.ID, Path: rootTree.Path, HPath: rootTree.HPath}
|
||||||
if err = buildBlockChildren(rootBlock); nil != err {
|
if err = buildBlockChildren(rootBlock); nil != err {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue