mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
ed9661c8b4
commit
f04508e009
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user