summaryrefslogtreecommitdiff
path: root/backend/ps
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-12-30 18:08:20 +0100
committerraveit65 <[email protected]>2021-01-07 19:09:43 +0100
commita3173f89e2cbec52df8e17d158b4a9be4d88c8b3 (patch)
treee3f50f3163173b164ca1dcb1db943f99575abcc0 /backend/ps
parenta23d153102cfcba1079e68b43cf1abc607f65cb5 (diff)
downloadatril-a3173f89e2cbec52df8e17d158b4a9be4d88c8b3.tar.bz2
atril-a3173f89e2cbec52df8e17d158b4a9be4d88c8b3.tar.xz
ps backend: do not silence the warnings when rendering the page
Diffstat (limited to 'backend/ps')
-rw-r--r--backend/ps/ev-spectre.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/backend/ps/ev-spectre.c b/backend/ps/ev-spectre.c
index f29f7b2c..daa13d18 100644
--- a/backend/ps/ev-spectre.c
+++ b/backend/ps/ev-spectre.c
@@ -315,14 +315,14 @@ ps_document_render (EvDocument *document,
spectre_page_render (ps_page, src, &data, &stride);
spectre_render_context_free (src);
- if (!data) {
+ if (spectre_page_status (ps_page) != SPECTRE_STATUS_SUCCESS) {
+ g_warning ("libspectre reports: %s",
+ spectre_status_to_string (spectre_page_status (ps_page)));
+ g_free (data);
return NULL;
}
- if (spectre_page_status (ps_page)) {
- g_warning ("%s", spectre_status_to_string (spectre_page_status (ps_page)));
- g_free (data);
-
+ if (!data) {
return NULL;
}