diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2013-09-14 01:59:43 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2013-09-14 01:59:43 +0000 |
| commit | 35dc2e5a640375d51119f2051a240454b5f5b8c8 (patch) | |
| tree | 2b35e5a1068a675c9c27cb13eaec598410a9b787 /src/display/cairo-utils.cpp | |
| parent | Fix serious bug in recent GdkPixbuf / Cairo interop rework (diff) | |
| download | inkscape-35dc2e5a640375d51119f2051a240454b5f5b8c8.tar.gz inkscape-35dc2e5a640375d51119f2051a240454b5f5b8c8.zip | |
Do not recompress images when embedding and generating PDFs.
Fixes blocker bug #871563.
Fixed bugs:
- https://launchpad.net/bugs/871563
(bzr r12516)
Diffstat (limited to 'src/display/cairo-utils.cpp')
| -rw-r--r-- | src/display/cairo-utils.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/display/cairo-utils.cpp b/src/display/cairo-utils.cpp index 2d94d024f..755553033 100644 --- a/src/display/cairo-utils.cpp +++ b/src/display/cairo-utils.cpp @@ -423,6 +423,11 @@ ink_cairo_set_source_pixbuf(cairo_t *ct, GdkPixbuf *pb, double x, double y) * The returned surface is owned by the GdkPixbuf and should not be freed. * Calling this function causes the pixbuf to be unsuitable for use * with GTK drawing functions until ink_pixbuf_ensure_normal() is called. + * + * @bug You have to call g_object_set_data(G_OBJECT(pb), "cairo_surface", NULL) + * when unrefing the last reference to the pixbuf. Otherwise there will be + * crashes, because cairo_surface_destroy is called after the pixbuf data + * is already freed. */ cairo_surface_t * ink_cairo_surface_get_for_pixbuf(GdkPixbuf *pb) |
