13
0

automation line: use return value from (new API) model-to-view method

This commit is contained in:
Paul Davis 2022-10-26 16:56:22 -06:00
parent 44f169bc56
commit 389577b1e9

View File

@ -1176,7 +1176,7 @@ AutomationTimeAxisView::cut_copy_clear_one (AutomationLine& line, Selection& sel
for (AutomationList::iterator x = what_we_got->begin(); x != what_we_got->end(); ++x) {
timepos_t when = (*x)->when;
double val = (*x)->value;
line.model_to_view_coord_y (val);
val = line.model_to_view_coord_y (val);
(*x)->when = when;
(*x)->value = val;
}