From 2d389a23d5738b0670ead38c45c99afbdecc4d85 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 28 Dec 2013 13:52:46 -0500 Subject: [PATCH] convert automation line from Canvas::Curve to Canvas::PolyLine (note: this means there is no actual use of Canvas::Curve now) --- gtk2_ardour/automation_line.cc | 2 +- gtk2_ardour/automation_line.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index eb6a54e1a3..d75243691a 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -94,7 +94,7 @@ AutomationLine::AutomationLine (const string& name, TimeAxisView& tv, ArdourCanv group = new ArdourCanvas::Group (&parent); CANVAS_DEBUG_NAME (group, "region gain envelope group"); - line = new ArdourCanvas::Curve (group); + line = new ArdourCanvas::PolyLine (group); CANVAS_DEBUG_NAME (line, "region gain envelope line"); line->set_data ("line", this); line->set_outline_width (2.0); diff --git a/gtk2_ardour/automation_line.h b/gtk2_ardour/automation_line.h index 816105b1e5..bb1e927ad5 100644 --- a/gtk2_ardour/automation_line.h +++ b/gtk2_ardour/automation_line.h @@ -38,7 +38,7 @@ #include "canvas/types.h" #include "canvas/group.h" -#include "canvas/curve.h" +#include "canvas/poly_line.h" class AutomationLine; class ControlPoint; @@ -174,7 +174,7 @@ class AutomationLine : public sigc::trackable, public PBD::StatefulDestructible ArdourCanvas::Group& _parent_group; ArdourCanvas::Group* group; - ArdourCanvas::Curve* line; /* line */ + ArdourCanvas::PolyLine* line; /* line */ ArdourCanvas::Points line_points; /* coordinates for canvas line */ std::vector control_points; /* visible control points */ -- 2.30.2