diff --git a/libs/surfaces/push2/cues.cc b/libs/surfaces/push2/cues.cc index d2aeeebf35..34c10b29e6 100644 --- a/libs/surfaces/push2/cues.cc +++ b/libs/surfaces/push2/cues.cc @@ -906,6 +906,7 @@ FollowActionIcon::render (ArdourCanvas::Rect const & area, Cairo::RefPtrmove_to (size / 2, size / 2); context->rel_move_to (-tw / 2, -th / 2); layout->show_in_cairo_context (context); + context->begin_new_path (); context->restore (); return; } @@ -947,14 +948,18 @@ FollowActionIcon::render (ArdourCanvas::Rect const & area, Cairo::RefPtr= 0); Glib::RefPtr layout = Pango::Layout::create (context); layout->set_font_description (font_description); layout->set_text (cue_marker_name (cue_idx)); int tw, th; layout->get_pixel_size (tw, th); - // context->move_to (size / 2, size / 2); - // context->rel_move_to (-tw / 2, -th / 2); - // layout->show_in_cairo_context (context); + context->move_to ((size / 2) - (tw/2), (size / 2) - (th/2)); + layout->show_in_cairo_context (context); + /* the above call does not clear the path and neither + * does ::restore() + */ + context->begin_new_path (); } else if (false) { // 'ANY' jump for (int i = 0; i < 6; i++) { Cairo::Matrix m = context->get_matrix ();