From: Hosang Kim Date: Thu, 1 Feb 2024 05:35:38 +0000 (+0900) Subject: Comparer: fix bug when find element with showing condition. X-Git-Tag: accepted/tizen/7.0/unified/20240216.161228^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42f6afa8f7feef78c3b1409103f79d2766a56ef7;p=platform%2Fcore%2Fuifw%2Faurum.git Comparer: fix bug when find element with showing condition. Comparer checks only matchshowing, so it can't find hidden element. Add checks isshowing also. Change-Id: I82f491f91ab95e78f99356feace5d6fa405c63cb --- diff --git a/libaurum/src/Comparer.cc b/libaurum/src/Comparer.cc index f2c120a..d9b6312 100644 --- a/libaurum/src/Comparer.cc +++ b/libaurum/src/Comparer.cc @@ -116,7 +116,7 @@ void Comparer::findObjects(std::vector> &ret, continue; } - if (mSelector->mMatchShowing && !curNode->isShowing()) continue; + if (mSelector->mMatchShowing && mSelector->mIsshowing && !curNode->isShowing()) continue; int partialMatchSize = (int)partialMatches.size(); mStack.push_back({curNode, curIndex, curDepth, true, partialMatchSize});