send control now has working metering, and switches back and forth between busses...
[ardour.git] / gtk2_ardour / editor_cursors.cc
index ca00ec61d2eabe7b823a409d30d339704c54fa13..93743f580eb1de4c9fc136d510c037fa20b643b3 100644 (file)
@@ -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