[goffice] Fix build with EMF support.
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goffice] Fix build with EMF support.
- Date: Sat, 21 Apr 2012 08:33:36 +0000 (UTC)
commit 92cc28f3a2edf0b9a0a930b147964f10c8316d71
Author: Jean Brefort <jean brefort normalesup org>
Date: Sat Apr 21 10:32:24 2012 +0200
Fix build with EMF support.
ChangeLog | 4 ++++
goffice/utils/go-emf.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1c8e8ce..9fc3541 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-04-21 Jean Brefort <jean brefort normalesup org>
+
+ * goffice/utils/go-emf.c (load_wmf_as_pixbuf): fix build with EMF support.
+
2012-04-20 Jean Brefort <jean brefort normalesup org>
* goffice/graph/gog-renderer.c: fixed documentation.
diff --git a/goffice/utils/go-emf.c b/goffice/utils/go-emf.c
index a67f7b5..533a0bc 100644
--- a/goffice/utils/go-emf.c
+++ b/goffice/utils/go-emf.c
@@ -54,9 +54,9 @@ go_emf_load_attr (G_GNUC_UNUSED GOImage *image, G_GNUC_UNUSED xmlChar const *att
/* nothing to do */
}
-#ifndef GOFFICE_EMF_SUPPORT
static void load_wmf_as_pixbuf (GOImage *image, guint8 const *data, size_t length)
{
+#ifndef GOFFICE_EMF_SUPPORT
GdkPixbufLoader *loader = gdk_pixbuf_loader_new_with_type ("wmf", NULL);
if (loader) {
@@ -72,8 +72,8 @@ static void load_wmf_as_pixbuf (GOImage *image, guint8 const *data, size_t lengt
image->width = gdk_pixbuf_get_width (image->pixbuf);
image->height = gdk_pixbuf_get_height (image->pixbuf);
}
-}
#endif
+}
static void
go_emf_load_data (GOImage *image, GsfXMLIn *xin)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]