followup to the previous tempo-dragging commit: use argument to Drag::aborted() to...
[ardour.git] / gtk2_ardour / axis_view.cc
index 1144fb1e68c67c13c681df1c1307d58ab7341554..5e0a50fdf7d2a2977827cb901fb026a73a71497f 100644 (file)
@@ -80,12 +80,9 @@ AxisView::marked_for_display () const
 bool
 AxisView::set_marked_for_display (bool yn)
 {
-       if (yn != marked_for_display()) {
-               if (yn) {
-                       set_gui_property ("visible", true);
-               } else {
-                       set_gui_property ("visible", false);
-               }
+       string const v = gui_property ("visible");
+       if (v == "" || yn != string_is_affirmative (v)) {
+               set_gui_property ("visible", yn);
                return true; // things changed
        }