From 2303dafaae902f203d95c86424feecfda06d8a90 Mon Sep 17 00:00:00 2001 From: Christian Semmler Date: Sat, 28 Dec 2024 09:11:00 -0700 Subject: [PATCH] Match `LegoInputManager::ProcessOneEvent` (#1294) --- LEGO1/lego/legoomni/src/input/legoinputmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp b/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp index 31c4eabdd8..3aa0208c27 100644 --- a/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp +++ b/LEGO1/lego/legoomni/src/input/legoinputmanager.cpp @@ -466,7 +466,7 @@ MxBool LegoInputManager::ProcessOneEvent(LegoEventNotificationParam& p_param) LegoROI* roi = PickROI(p_param.GetX(), p_param.GetY()); p_param.SetROI(roi); - if (roi && roi->GetVisibility()) { + if (roi && roi->GetVisibility() == TRUE) { for (OrientableROI* parent = roi->GetParentROI(); parent; parent = parent->GetParentROI()) { roi = (LegoROI*) parent; }