BugFix UI Input Mapping

This commit is contained in:
Bruno Herbelin
2023-02-09 23:18:43 +01:00
parent 128e8834e8
commit 21045411e7

View File

@@ -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<Source *>(&selected_target)) {
if ( target.index() == 1 ) {
if (Source * const* v = std::get_if<Source *>(&target)) {
withimageprocessing = (*v)->imageProcessingEnabled();
}
}