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(); } }