mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-14 07:43:45 +01:00
Fix open_function call
This commit is contained in:
parent
626fd50e32
commit
b0cf2749e2
@ -270,7 +270,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
|
|||||||
document->scale = 1;
|
document->scale = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin->open_function == NULL || plugin->open_function(document) == false) {
|
if (plugin->open_function == NULL || plugin->open_function(document) != ZATHURA_PLUGIN_ERROR_OK) {
|
||||||
girara_error("could not open file\n");
|
girara_error("could not open file\n");
|
||||||
goto error_free;
|
goto error_free;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user