GTK3: pdf out conversion, avoid segfault in pdf report write,

svn: r20283
This commit is contained in:
Benny Malengier
2012-08-29 12:58:22 +00:00
parent 6536b74a59
commit 97a7b690ac
3 changed files with 6 additions and 20 deletions
src/plugins

@ -714,7 +714,7 @@ class GtkDocParagraph(GtkDocBaseElement):
# 3/4 of the spacing is added above the text, 1/4 is added below
cr.move_to(x, t_margin + v_padding + spacing * 0.75)
cr.set_source_rgb(*ReportUtils.rgb_color(font_style.get_color()))
cr.show_layout(layout)
PangoCairo.show_layout(cr, layout)
# calculate the full paragraph height
height = layout_height + spacing + t_margin + 2*v_padding + b_margin
@ -1295,7 +1295,7 @@ class GtkDocText(GtkDocBaseElement):
cr.rotate(radians(self._angle))
cr.move_to(align_x, align_y)
cr.set_source_rgb(*ReportUtils.rgb_color(font_style.get_color()))
cr.show_layout(layout)
PangoCairo.show_layout(cr, layout)
cr.restore()
return layout_height