visualizer: ignore anchor x/y position

We don't need that, and it breaks for things not at index 0,0.
This commit is contained in:
Christian Hergert
2018-05-16 15:09:20 +01:00
parent a61703d7e5
commit a15eb358ce

View File

@ -299,8 +299,8 @@ sp_visualizer_row_translate_points (SpVisualizerRow *self,
for (guint i = 0; i < n_in_points; i++)
{
out_points[i].x = alloc.x + (in_points[i].x * graph_width);
out_points[i].y = alloc.y + alloc.height - (in_points[i].y * alloc.height);
out_points[i].x = (in_points[i].x * graph_width);
out_points[i].y = alloc.height - (in_points[i].y * alloc.height);
}
}