diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 12:14:50 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-04-26 12:14:50 +0000 |
commit | ee8f2979896a2c634aeb225933f63e1b1e92702f (patch) | |
tree | 05fe1bb5a1e291292493438481ee0242e0da0fe4 /gtk2_ardour/time_axis_view_item.cc | |
parent | b74fb993329de5ae039bece11d1551aec728b2d7 (diff) |
do not unnecessarily recompute streamview item heights; set axis view item name text to an empty string, not just hidden if no text will fit
git-svn-id: svn://localhost/ardour2/trunk@1749 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/time_axis_view_item.cc')
-rw-r--r-- | gtk2_ardour/time_axis_view_item.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/time_axis_view_item.cc b/gtk2_ardour/time_axis_view_item.cc index 37daaf9ecc..7830e8f437 100644 --- a/gtk2_ardour/time_axis_view_item.cc +++ b/gtk2_ardour/time_axis_view_item.cc @@ -18,6 +18,7 @@ */ #include <pbd/error.h> +#include <pbd/stacktrace.h> #include <ardour/types.h> #include <ardour/ardour.h> @@ -571,7 +572,7 @@ TimeAxisViewItem::set_name_text(const ustring& new_name) * @param h the new height */ void -TimeAxisViewItem::set_height(double height) +TimeAxisViewItem::set_height (double height) { if (name_highlight) { if (height < NAME_HIGHLIGHT_THRESH) { @@ -975,8 +976,7 @@ TimeAxisViewItem::reset_name_width (double pixel_width) } if (n == 0) { - /* nothing will fit */ - name_text->hide (); + name_text->property_text() = ""; last_name_text_width = pixel_width; return; } |