13
0

Fix extended region names on reloading sessions with short regions (part of #4493).

git-svn-id: svn://localhost/ardour2/branches/3.0@12408 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-05-23 23:39:36 +00:00
parent 6c6769d84a
commit 6b3b3dcced

View File

@ -916,9 +916,12 @@ TimeAxisViewItem::reset_name_width (double /*pixel_width*/)
}
update_name_pixbuf_visibility ();
if (pb_width > 0) {
name_pixbuf->property_pixbuf() = pixbuf_from_string(item_name, NAME_FONT, pb_width, NAME_HEIGHT, Gdk::Color ("#000000"));
if (pb_width < 1) {
pb_width = 1;
}
name_pixbuf->property_pixbuf() = pixbuf_from_string(item_name, NAME_FONT, pb_width, NAME_HEIGHT, Gdk::Color ("#000000"));
}
/**