summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/editor_cursors.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_cursors.cc b/gtk2_ardour/editor_cursors.cc
index ee8253fed8..7cd897604c 100644
--- a/gtk2_ardour/editor_cursors.cc
+++ b/gtk2_ardour/editor_cursors.cc
@@ -77,11 +77,11 @@ EditorCursor::~EditorCursor ()
void
EditorCursor::set_position (framepos_t frame)
{
- PositionChanged (frame);
+ if (_current_frame != frame) { PositionChanged (frame); }
double const new_pos = _editor.sample_to_pixel_unrounded (frame);
- if (new_pos != _track_canvas_item->x ()) {
+ if (rint(new_pos) != rint(_track_canvas_item->x ())) {
_track_canvas_item->set_x (new_pos);
}