summaryrefslogtreecommitdiff
path: root/gtk2_ardour/region_view.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2006-08-11 23:02:08 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2006-08-11 23:02:08 +0000
commit66054fe5d61a225c1af03e514c23b5e1a5dbc547 (patch)
tree474d092d4f9ecb39a7a6791f46289dcef6072218 /gtk2_ardour/region_view.cc
parentb099d2aa87e9414ed6751ca4c1984902d4d26fe8 (diff)
new RCU implementation, using an extra layer of indirection allowing us to use g_atomic_pointer_compare_and_exchange(); bug fix for tape tracks, not sure why this never manifested before
git-svn-id: svn://localhost/ardour2/trunk@793 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/region_view.cc')
-rw-r--r--gtk2_ardour/region_view.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk2_ardour/region_view.cc b/gtk2_ardour/region_view.cc
index ebec4261ac..8e80b147e5 100644
--- a/gtk2_ardour/region_view.cc
+++ b/gtk2_ardour/region_view.cc
@@ -111,10 +111,14 @@ RegionView::init (Gdk::Color& basic_color, bool wfd)
compute_colors (basic_color);
name_highlight->set_data ("regionview", this);
- name_text->set_data ("regionview", this);
+
+ if (name_text) {
+ name_text->set_data ("regionview", this);
+ }
/* an equilateral triangle */
- ArdourCanvas::Points shape;
+
+ ArdourCanvas::Points shape;
shape.push_back (Gnome::Art::Point (-((sync_mark_width-1)/2), 1));
shape.push_back (Gnome::Art::Point ((sync_mark_width - 1)/2, 1));
shape.push_back (Gnome::Art::Point (0, sync_mark_width - 1));