FIX: OptionsGroup::get_line with multiple options
Change-Id: I9c96b0e5de5674e558aeb66d306da3519750fa65 Jira: STUDIO-10887
This commit is contained in:
parent
d415d8e728
commit
f0656ee986
|
@ -230,8 +230,9 @@ Line* OptionsGroup::get_line(const std::string& opt_key)
|
|||
{
|
||||
for (int index = 0; index < m_lines.size(); index++)
|
||||
{
|
||||
if (m_lines[index].get_first_option_key() == opt_key)
|
||||
return &(m_lines[index]);
|
||||
for (auto & opt : m_lines[index].get_options())
|
||||
if (opt.opt_id == opt_key)
|
||||
return &(m_lines[index]);
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
|
Loading…
Reference in New Issue