mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-03-03 18:04:40 +01:00
Fix open_function call
This commit is contained in:
parent
626fd50e32
commit
b0cf2749e2
1 changed files with 1 additions and 1 deletions
|
@ -270,7 +270,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password
|
|||
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");
|
||||
goto error_free;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue