diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 9971527f4e..52b388c780 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -85,7 +85,6 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string& , _follows_playhead (follows_playhead) , _accept_on_focus_out (accept_on_focus_out) , _off (false) - , em_width (0) , _edit_by_click_field (false) , _negative_allowed (false) , edit_is_negative (false) @@ -316,7 +315,7 @@ AudioClock::render (Cairo::RefPtr const& ctx, cairo_rectangle_t* cairo_set_source_rgba (cr, cursor_r, cursor_g, cursor_b, cursor_a); cairo_rectangle (cr, min (get_width() - 2.0, - (double) xcenter + cursor.get_x()/PANGO_SCALE + em_width), + (double) xcenter + cursor.get_x()/PANGO_SCALE), (get_height() - layout_height)/2.0, 2.0, cursor.get_height()/PANGO_SCALE); cairo_fill (cr); diff --git a/gtk2_ardour/audio_clock.h b/gtk2_ardour/audio_clock.h index 6e400ab999..c9462b304a 100644 --- a/gtk2_ardour/audio_clock.h +++ b/gtk2_ardour/audio_clock.h @@ -135,7 +135,6 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr bool _follows_playhead; bool _accept_on_focus_out; bool _off; - int em_width; bool _edit_by_click_field; bool _negative_allowed; bool edit_is_negative;