Commit 5d8cc487 authored by Philipp Erhardt's avatar Philipp Erhardt
Browse files

Fix segfault when requesting the TOC on locked doc

parent a1fbb796
......@@ -451,7 +451,7 @@ const QList<Poppler::Link *> *ResourceManager::get_links(int page) {
}
QDomDocument *ResourceManager::get_toc() const {
if (doc == NULL) {
if (doc == NULL || doc->isLocked()) {
return NULL;
}
return doc->toc();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment