Do not printf %s if the param is NULL.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15738 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-03-18 22:45:08 +00:00
parent ed9661c8b4
commit f04508e009

View File

@ -1335,7 +1335,8 @@ draw_text(GncPrintContext * context, const gchar * text, check_item_t * data,
}
/* Draw the text */
g_debug("Text move to %f,%f, print '%s'", data->x, data->y, text);
g_debug("Text move to %f,%f, print '%s'", data->x, data->y,
text ? text : "(null)");
cairo_move_to(cr, data->x, data->y - height);
pango_cairo_show_layout(cr, layout);
@ -1364,7 +1365,8 @@ draw_text(GncPrintContext * context, const gchar * text, check_item_t * data,
}
/* Draw the text */
g_debug("Text move to %f,%f, print '%s'", data->x, data->y, text);
g_debug("Text move to %f,%f, print '%s'", data->x, data->y,
text ? text : "(null)");
gnome_print_moveto(context, data->x, data->y);
gnome_print_show(context, text);
gnome_print_grestore(context);