Skip to content

Commit

Permalink
Lv2Proc: Set def value for enums
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Sep 18, 2022
1 parent f1e9585 commit 831bd1f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/lv2/Lv2Proc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,15 @@ void Lv2Proc::createPort(std::size_t portNum)
}
lilv_scale_points_free(sps);
}
for(std::size_t i = 0; i < ctrl->m_scalePointMap.size(); ++i)
{
if(meta.def() == ctrl->m_scalePointMap[i])
{
comboModel->setValue(i);
comboModel->setInitValue(i);
break;
}
}
ctrl->m_connectedModel.reset(comboModel);
break;
}
Expand Down

0 comments on commit 831bd1f

Please sign in to comment.