Draw a thin frame around dive prints

Just that trivial, simple and cosmetic thing.

Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Salvador Cuñat 2012-11-10 14:50:26 +01:00 committed by Dirk Hohndel
parent 240ef9e9e5
commit c0ebef92bf

View file

@ -372,6 +372,12 @@ static void print_table(int divenr, cairo_t *cr, double x, double y,
if (!dive)
return;
cairo_save(cr);
/*Create a frame for each print x,y are provided in draw_page()*/
cairo_rectangle(cr, x, y, w, h);
cairo_set_line_width(cr, 0.01);
cairo_set_line_join(cr, CAIRO_LINE_JOIN_MITER);
cairo_stroke(cr);
cairo_translate(cr, x, y);
/* Plus 5% on all sides */