Fix some indentation, add missing braces, and don't bother calling

cairo_set_width() inside the loops while doing the axes.

svn path=/trunk/; revision=45335
This commit is contained in:
Martin Mathieson 2012-10-06 00:23:23 +00:00
parent 5ef60b46a3
commit 3884220435
1 changed files with 19 additions and 21 deletions

View File

@ -2446,7 +2446,6 @@ static void v_axis_pixmap_draw (struct axis *axis)
if (y < 0 || y > axis->p.height)
continue;
cairo_set_line_width (cr, 1.0);
cairo_move_to(cr, axis->p.width - 15, y+0.5);
cairo_line_to(cr, axis->s.width - 1, y+0.5);
@ -2467,12 +2466,12 @@ static void v_axis_pixmap_draw (struct axis *axis)
offset + corr + axis->s.y);
debug (DBS_AXES_DRAWING) printf ("%f @ %d\n", i*axis->minor+fl, y);
if (y > 0 && y < axis->p.height)
cairo_set_line_width (cr, 1.0);
if (y > 0 && y < axis->p.height) {
cairo_move_to(cr, axis->s.width - 8, y+0.5);
cairo_line_to(cr, axis->s.width - 1, y+0.5);
}
}
}
for (i=0; axis->label[i]; i++) {
gint w, h;
layout = gtk_widget_create_pango_layout(g->drawing_area,
@ -2565,7 +2564,6 @@ static void h_axis_pixmap_draw (struct axis *axis)
for (i=imin; i <= imax; i++) {
int x = (int) (rint (i * minor_tick) - offset - corr);
if (x > 0 && x < axis->s.width){
cairo_set_line_width (cr, 1.0);
cairo_move_to(cr, x+0.5, 0);
cairo_line_to(cr, x+0.5, 8);
}