region list patch #2 from chris g, slightly reworked by me; sv_se po changes, possibl...
[ardour.git] / gtk2_ardour / diamond.cc
index 53341cf2469802af20e965ff44172c8d562936dd..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.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;     
 }