Fix sparkline rendering to only draw a single pixel base line

This commit is contained in:
Daniel P. Berrange 2006-07-14 14:02:39 -04:00
parent a2590ff060
commit 38d4f30c56
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ static double get_y (GdkRectangle *cell_area,
GValueArray *data,
int index)
{
double baseline_y = cell_area->y + cell_area->height-1;
double baseline_y = cell_area->y + cell_area->height;
GValue *val = g_value_array_get_nth(data, index);
return baseline_y - (cell_area->height * g_value_get_double(val));
}

View File

@ -207,7 +207,7 @@ static double get_y (GtkAllocation *cell_area,
GValueArray *data,
int index)
{
double baseline_y = cell_area->height-1;
double baseline_y = cell_area->height;
GValue *val = g_value_array_get_nth(data, index);
return baseline_y - ((cell_area->height-1) * g_value_get_double(val));
}