dia r3908 - in trunk: . plug-ins/cairo
- From: hans svn gnome org
- To: svn-commits-list gnome org
- Subject: dia r3908 - in trunk: . plug-ins/cairo
- Date: Sun, 9 Mar 2008 12:28:37 +0000 (GMT)
Author: hans
Date: Sun Mar 9 12:28:36 2008
New Revision: 3908
URL: http://svn.gnome.org/viewvc/dia?rev=3908&view=rev
Log:
2008-03-09 Hans Breuer <hans breuer org>
* plug-ins/cairo/diacairo-print.c : fix reference counting for cairo_t
Modified:
trunk/ChangeLog
trunk/plug-ins/cairo/diacairo-print.c
Modified: trunk/plug-ins/cairo/diacairo-print.c
==============================================================================
--- trunk/plug-ins/cairo/diacairo-print.c (original)
+++ trunk/plug-ins/cairo/diacairo-print.c Sun Mar 9 12:28:36 2008
@@ -74,7 +74,8 @@
cairo_renderer = DIA_CAIRO_RENDERER (print_data->renderer);
g_return_if_fail (cairo_renderer->cr == NULL);
- cairo_renderer->cr = gtk_print_context_get_cairo_context (context);
+ /* the renderer wants it's own reference */
+ cairo_renderer->cr = cairo_reference (gtk_print_context_get_cairo_context (context));
cairo_renderer->dia = print_data->data;
#if 0 /* needs some text size scaling ... */
cairo_renderer->layout = gtk_print_context_create_pango_layout (context);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]