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/8.0/unified/20240318.143401~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca4a7ee0ec2ef7f06612ad9db8a376ce5d19e8a4;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});