diff --git a/local/lib/org-x/org-x-dag.el b/local/lib/org-x/org-x-dag.el index 1fc2a16..0e958a9 100644 --- a/local/lib/org-x/org-x-dag.el +++ b/local/lib/org-x/org-x-dag.el @@ -520,7 +520,8 @@ used for optimization." this-links (or (org-x-dag-get-parent-links (nth 3 this-pblock) next-pos) (unless node-stack - (nth 2 (car bare-stack))))) + (or (nth 2 (car bare-stack)) + this-file-links)))) (when this-tags (setq this-tags (split-string this-tags ":"))) (when (and (not node-stack) bare-stack)