Apply LV2 changes from 2.0.
[ardour.git] / gtk2_ardour / diamond.cc
index 31761597cdc6029f9a4bb97eee71fd2b0f72a09b..04fdd509c23cf3201f79b8dc14549f11b7ca7f4b 100644 (file)
@@ -24,12 +24,18 @@ using namespace Gnome::Art;
 
 Diamond::Diamond(Group& group, double height)
        : Polygon(group)
+{
+       set_height(height);
+}
+
+void
+Diamond::set_height(double height)
 {
        Points points;
-       points.push_back(Point(0, height*2));
+       points.push_back(Point(0, height*2.0));
        points.push_back(Point(height, height));
        points.push_back(Point(0, 0));
        points.push_back(Point(-height, height));
-       property_points() = points;
+       property_points() = points;     
 }