Fix thinko in dd3f922788
[ardour.git] / gtk2_ardour / automation_line.cc
index 9523df2c57f3001d86afa5ef8c02368e49e6538f..9c1aa13198bc52c76dfbb2b9595d5c7491cad4ed 100644 (file)
@@ -1168,6 +1168,7 @@ AutomationLine::view_to_model_coord (double& x, double& y) const
 void
 AutomationLine::view_to_model_coord_y (double& y) const
 {
+#ifdef XXX_NEW_INTERPOLATON__BREAK_SESSION_FORMAT_XXX
        if (alist->default_interpolation () != alist->interpolation()) {
                switch (alist->interpolation()) {
                        case AutomationList::Linear:
@@ -1178,6 +1179,7 @@ AutomationLine::view_to_model_coord_y (double& y) const
                                break;
                }
        }
+#endif
        y = _desc.from_interface (y);
 }
 
@@ -1202,6 +1204,7 @@ AutomationLine::apply_delta (double& val, double delta) const
 void
 AutomationLine::model_to_view_coord_y (double& y) const
 {
+#ifdef XXX_NEW_INTERPOLATON__BREAK_SESSION_FORMAT_XXX
        if (alist->default_interpolation () != alist->interpolation()) {
                switch (alist->interpolation()) {
                        case AutomationList::Linear:
@@ -1212,6 +1215,7 @@ AutomationLine::model_to_view_coord_y (double& y) const
                                break;
                }
        }
+#endif
        y = _desc.to_interface (y);
 }