mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
Remove ARDOUR::Parameter::is_integer.
git-svn-id: svn://localhost/ardour2/branches/3.0@3837 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
80608f7594
commit
03f188cc8b
5 changed files with 15 additions and 6 deletions
|
|
@ -614,10 +614,11 @@ AutomationLine::get_verbose_cursor_string (double fraction)
|
|||
}
|
||||
} else {
|
||||
view_to_model_y(fraction);
|
||||
if (((ARDOUR::Parameter)alist->parameter()).is_integer())
|
||||
if (EventTypeMap::instance().is_integer(alist->parameter())) {
|
||||
snprintf (buf, sizeof (buf), "%d", (int)fraction);
|
||||
else
|
||||
} else {
|
||||
snprintf (buf, sizeof (buf), "%.2f", fraction);
|
||||
}
|
||||
}
|
||||
|
||||
return buf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue