Skip to content

Commit

Permalink
Try to fix epub crash
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomas2 committed Dec 25, 2024
1 parent 4df8f1b commit 44a0cfa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class EpubBackendState(private val epubDir: File): OpenFileState {
val frag = getFragment(key)?: return emptyList()
val file = fileForOriginalId(frag.originalId)?: return emptyList()
val parentFolder = file.parentFile
return dao.styleSheets(frag.originalId).map { File(parentFolder, it.styleSheetFile) }
return dao.styleSheets(frag.originalId).map { File(parentFolder, it.styleSheetFile).canonicalFile }
}

private fun getKey(fragment: EpubFragment, label: String? = null): Key {
Expand Down

0 comments on commit 44a0cfa

Please sign in to comment.