🐛 Exporting PDF hangs after focusing heading block Fix https://github.com/siyuan-note/siyuan/issues/7848

This commit is contained in:
Liang Ding 2023-04-01 16:52:35 +08:00
parent 2de23a977b
commit b7e1dc4a36
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 3 additions and 1 deletions

View file

@ -628,7 +628,9 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
first.InsertBefore(node)
}
}
ret.Path = bt.Path
ret.HPath = bt.HPath
ret.Box = bt.BoxID
return
}

View file

@ -25,7 +25,7 @@ import (
func mergeSubDocs(rootTree *parse.Tree) (ret *parse.Tree, err error) {
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 {
return
}