[eog: 3/6] rsvg_handle_new() cannot return NULL; don't check it
- From: Felix Riemann <friemann src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [eog: 3/6] rsvg_handle_new() cannot return NULL; don't check it
- Date: Sun, 19 May 2019 18:36:57 +0000 (UTC)
commit 1312494db9c192b7b574feec49a91404caa5bb95
Author: Federico Mena Quintero <federico gnome org>
Date: Wed Feb 20 14:19:47 2019 -0600
rsvg_handle_new() cannot return NULL; don't check it
src/eog-image.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/eog-image.c b/src/eog-image.c
index 72f07e39..b74addf7 100644
--- a/src/eog-image.c
+++ b/src/eog-image.c
@@ -979,7 +979,6 @@ eog_image_real_load (EogImage *img,
gchar *file_path;
/* Keep the object for rendering */
priv->svg = rsvg_handle_new ();
- use_rsvg = (priv->svg != NULL);
file_path = g_file_get_path (priv->file);
rsvg_handle_set_base_uri (priv->svg, file_path);
g_free (file_path);
@@ -988,6 +987,8 @@ eog_image_real_load (EogImage *img,
* different then pixels. This value is specified in
* the CSS standard on which SVG depends. */
rsvg_handle_set_dpi_x_y (priv->svg, 96.0, 96.0);
+
+ use_rsvg = TRUE;
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]