13
0

To keep MSVC happy, clarify which overloaded version of 'floor()' to call

This commit is contained in:
John Emmas 2020-12-31 16:13:51 +00:00
parent 631b39e803
commit bf50535d69

View File

@ -117,7 +117,7 @@ RegionPeakCursor::set (AudioRegionView* arv, samplepos_t when, samplecnt_t sampl
/* position relative to editor origin */
ArdourCanvas::Duple pos = arv->get_canvas_group ()->item_to_window (_canvas_text->parent ()->position ());
double xpos = pos.x + floor ((when - ar->position ()) / samples_per_pixel);
double xpos = pos.x + floor ((double)(when - ar->position ()) / samples_per_pixel);
_canvas_text->set_x_position (xpos + 3);
_canvas_text->set_y_position (pos.y + 3);