From dab93d63b42e38b309fba04e08f1a3e80a6fc8e7 Mon Sep 17 00:00:00 2001 From: Evgeni Raikhel Date: Wed, 17 Jun 2020 13:27:09 +0300 Subject: [PATCH] Fix ROI option for Depth stream --- common/model-views.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/model-views.cpp b/common/model-views.cpp index f1e0e039af..33258c871b 100644 --- a/common/model-views.cpp +++ b/common/model-views.cpp @@ -1897,7 +1897,7 @@ namespace rs2 auto& opt_md = options_metadata[static_cast(next)]; opt_md.update_all_fields(error_message, notifications); - if (next_option == RS2_OPTION_ENABLE_AUTO_EXPOSURE) + if (next == RS2_OPTION_ENABLE_AUTO_EXPOSURE) { auto old_ae_enabled = auto_exposure_enabled; auto_exposure_enabled = opt_md.value > 0;