[goffice] Export each marker to svg until cairo bug #63633 is fixed. [#698162]



commit 5f40ca5cfeab167b2317fbda08109d8a16ee535b
Author: Jean Brefort <jean brefort normalesup org>
Date:   Wed Apr 17 21:40:47 2013 +0200

    Export each marker to svg until cairo bug #63633 is fixed. [#698162]

 ChangeLog                    | 6 ++++++
 NEWS                         | 1 +
 goffice/graph/gog-renderer.c | 4 ++++
 3 files changed, 11 insertions(+)
---
diff --git a/ChangeLog b/ChangeLog
index 8a4720c..6ad3214 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-17  Jean Brefort  <jean brefort normalesup org>
+
+       * goffice/graph/gog-renderer.c (gog_renderer_export_image): don't cache
+       markers when exporting to svg until things are fixed in cairo 
+       (https://bugs.freedesktop.org/show_bug.cgi?id=63633). [#698162]
+
 2013-04-16  Morten Welinder  <terra gnome org>
 
        * goffice/gtk/goffice-gtk.c (go_gtk_file_sel_dialog): Don't use
diff --git a/NEWS b/NEWS
index 965e0af..ab7b2b1 100644
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ Jean:
        * Fixed test in goc_item_set_transform(). [#698101]
        * Iinitialize GOEditor::use_scrolled. [#698102]
        * Don't unref a disposed widget. [#698150]
+       * Export each marker to svg until cairo bug #63633 is fixed. [#698162]
 
 Morten:
        * Fix problems with cspline boxed type. [#695550]
diff --git a/goffice/graph/gog-renderer.c b/goffice/graph/gog-renderer.c
index 93eba10..0fa5a68 100644
--- a/goffice/graph/gog-renderer.c
+++ b/goffice/graph/gog-renderer.c
@@ -1564,7 +1564,11 @@ gog_renderer_export_image (GogRenderer *rend, GOImageFormat format,
                        cairo_surface_set_fallback_resolution (surface, x_dpi, y_dpi);
                        goto do_export_vectorial;
                case GO_IMAGE_FORMAT_SVG:
+#ifdef CAIRO_BUG_63633_FIXED
                        rend->marker_as_surface = TRUE;
+#else
+                       rend->marker_as_surface = FALSE;
+#endif
                        surface = cairo_svg_surface_create_for_stream
                                (_cairo_write_func,
                                 output, width_in_pts, height_in_pts);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]