Skip to content

Commit

Permalink
viewer displays options in the order reported by librealsense
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed Jul 11, 2024
1 parent bc97b02 commit dc84b0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/device-model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2620,11 +2620,11 @@ namespace rs2

std::vector<rs2_option> so_ordered;

for (auto const & id_model : supported_options)
for( auto const id_model : sub->supported_options )
{
auto it = find( color_options.begin(), color_options.end(), id_model.first );
auto it = find( color_options.begin(), color_options.end(), id_model );
if (it == color_options.end())
so_ordered.push_back( id_model.first );
so_ordered.push_back( id_model );
}

std::for_each( color_options.begin(),
Expand Down

0 comments on commit dc84b0b

Please sign in to comment.