Fixed overflow issue. Code originally meant to truncate the 64 bit integer did not...
[ardour.git] / gtk2_ardour / editor_cursors.cc
index ca00ec61d2eabe7b823a409d30d339704c54fa13..0f5c414408c31b8b1ee2293d949a10e84b56f786 100644 (file)
@@ -64,10 +64,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 +71,7 @@ Editor::Cursor::set_position (nframes64_t frame)
 
                canvas_item.property_points() = points;
        }
+       current_frame = frame;
 }
 
 void
@@ -83,9 +80,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