diff --git a/document.c b/document.c index 9ee63ae..db8dd07 100644 --- a/document.c +++ b/document.c @@ -219,6 +219,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password document->rotate = 0; document->data = NULL; document->pages = NULL; + document->zathura = zathura; document->functions.document_free = NULL; document->functions.document_index_generate = NULL; diff --git a/document.h b/document.h index 358b945..5fc5ae6 100644 --- a/document.h +++ b/document.h @@ -164,6 +164,7 @@ struct zathura_document_s double scale; /**> Scale value */ int rotate; /**> Rotation */ void* data; /**> Custom data */ + zathura_t* zathura; /** Zathura object */ struct {