From 21045411e79c34dfe843318c81c387dfc13ba606 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Thu, 9 Feb 2023 23:18:43 +0100 Subject: [PATCH] BugFix UI Input Mapping --- src/UserInterfaceManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/UserInterfaceManager.cpp b/src/UserInterfaceManager.cpp index 546853d..f0d6526 100644 --- a/src/UserInterfaceManager.cpp +++ b/src/UserInterfaceManager.cpp @@ -5874,8 +5874,8 @@ void InputMappingInterface::Render() // check if target is a Source with image processing enabled bool withimageprocessing = false; - if ( selected_target.index() == 1 ) { - if (Source * const* v = std::get_if(&selected_target)) { + if ( target.index() == 1 ) { + if (Source * const* v = std::get_if(&target)) { withimageprocessing = (*v)->imageProcessingEnabled(); } }