AurumXML: fix strict weak ordering. 00/308100/1 accepted/tizen/unified/20240319.141032 accepted/tizen/unified/20240319.154828 accepted/tizen/unified/x/20240320.133023
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 18 Mar 2024 04:43:17 +0000 (13:43 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Mon, 18 Mar 2024 04:43:17 +0000 (13:43 +0900)
Change-Id: I444ac7f512abfbef2340f132d83964ac236ed903

libaurum/src/AurumXML.cc

index 6974d59..b416bb2 100644 (file)
@@ -77,7 +77,7 @@ void AurumXML::traverse(xml_node& element, const std::shared_ptr<AccessibleNode>
 
         if (aRect.mTopLeft.x != bRect.mTopLeft.x) return aRect.mTopLeft.x < bRect.mTopLeft.x;
         if (aRect.mTopLeft.y != bRect.mTopLeft.y) return aRect.mTopLeft.y < bRect.mTopLeft.y;
-        else return aRect.width() * aRect.height() <= bRect.width() * bRect.height();
+        else return aRect.width() * aRect.height() < bRect.width() * bRect.height();
     });
 
     for (const auto &child : children)