summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print.c b/print.c
index 62317c15e..9ce367508 100644
--- a/print.c
+++ b/print.c
@@ -300,13 +300,13 @@ static void show_dive_table(struct dive *dive, cairo_t *cr, double w,
static void show_dive_profile(struct dive *dive, cairo_t *cr, double w,
double h)
{
- cairo_rectangle_t drawing_area = { w/20.0, h/20.0, w, h};
struct graphics_context gc = {
.printer = 1,
- .cr = cr
+ .cr = cr,
+ .drawing_area = { w/20.0, h/20.0, w, h},
};
cairo_save(cr);
- plot(&gc, &drawing_area, dive, SC_PRINT);
+ plot(&gc, dive, SC_PRINT);
cairo_restore(cr);
}