mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 14:15:46 +01:00
markers are not allowed to have empty names, especially since it causes a crash in the pixbuf code
git-svn-id: svn://localhost/ardour2/branches/3.0@6072 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7857ec8b45
commit
ab565167ff
1 changed files with 4 additions and 1 deletions
|
|
@ -359,6 +359,10 @@ Marker::set_name (const string& new_name)
|
|||
uint32_t pb_width;
|
||||
double font_size;
|
||||
|
||||
if (new_name.empty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
font_size = name_font->get_size() / Pango::SCALE;
|
||||
pb_width = new_name.length() * font_size;
|
||||
|
||||
|
|
@ -386,7 +390,6 @@ Marker::set_name (const string& new_name)
|
|||
if (_type == End || _type == LoopEnd || _type == PunchOut) {
|
||||
name_pixbuf->property_x() = -(te.width);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue