diff options
author | Hans Baier <hansfbaier@googlemail.com> | 2008-04-21 16:42:55 +0000 |
---|---|---|
committer | Hans Baier <hansfbaier@googlemail.com> | 2008-04-21 16:42:55 +0000 |
commit | 7afccaa9fe6601c5809d61e637683a107063310b (patch) | |
tree | 942f7275505e1a0285446610b2d15f1bb3d225df /gtk2_ardour/diamond.cc | |
parent | c72bf18bf472e665a51a8383b00eb21b40805d39 (diff) |
* fixed display bug: changing the height on tracks doesnt rescale CanvasHits
git-svn-id: svn://localhost/ardour2/branches/3.0@3278 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/diamond.cc')
-rw-r--r-- | gtk2_ardour/diamond.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gtk2_ardour/diamond.cc b/gtk2_ardour/diamond.cc index 53341cf246..04fdd509c2 100644 --- a/gtk2_ardour/diamond.cc +++ b/gtk2_ardour/diamond.cc @@ -25,11 +25,17 @@ 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; } |