X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Feditor_cursors.cc;h=93743f580eb1de4c9fc136d510c037fa20b643b3;hb=ee42a6dd97045253d1a9bb32fc2e571d235f9967;hp=ca00ec61d2eabe7b823a409d30d339704c54fa13;hpb=c86210a9d5bdb7b36ad58552a1f99f53d48781b3;p=ardour.git diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc index ca00ec61d2..93743f580e 100644 --- a/gtk2_ardour/editor_cursors.cc +++ b/gtk2_ardour/editor_cursors.cc @@ -35,10 +35,7 @@ Editor::Cursor::Cursor (Editor& ed, bool (Editor::*callbck)(GdkEvent*,ArdourCanv canvas_item (*editor.cursor_group), length(1.0) { - - /* "randomly" initialize coords */ - - points.push_back(Gnome::Art::Point(1.0, 0.0)); + points.push_back(Gnome::Art::Point(-1.0, 0.0)); // first x-coord needs to be a non-normal value points.push_back(Gnome::Art::Point(1.0, 1.0)); canvas_item.property_points() = points; @@ -64,10 +61,6 @@ Editor::Cursor::set_position (nframes64_t frame) { double new_pos = editor.frame_to_unit (frame); - if (editor.session == 0) { - canvas_item.hide(); - } - current_frame = frame; if (new_pos != points.front().get_x()) { points.front().set_x (new_pos); @@ -75,6 +68,7 @@ Editor::Cursor::set_position (nframes64_t frame) canvas_item.property_points() = points; } + current_frame = frame; } void @@ -83,9 +77,6 @@ Editor::Cursor::set_length (double units) length = units; points.back().set_y (points.front().get_y() + length); canvas_item.property_points() = points; - if (editor.session != 0) { - canvas_item.show(); - } } void