convert automation line from Canvas::Curve to Canvas::PolyLine (note: this means there is no actual use of Canvas::Curve now)

This commit is contained in:
Paul Davis 2013-12-28 13:52:46 -05:00
parent a585816f3e
commit 2d389a23d5
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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<ControlPoint*> control_points; /* visible control points */