AurumXML: fix strict weak ordering.
authorHosang Kim <hosang12.kim@samsung.com>
Mon, 18 Mar 2024 04:43:17 +0000 (13:43 +0900)
committerHosang Kim <hosang12.kim@samsung.com>
Mon, 25 Mar 2024 02:57:47 +0000 (11:57 +0900)
Change-Id: I444ac7f512abfbef2340f132d83964ac236ed903

libaurum/src/AurumXML.cc

index 6974d59a82ee9a88108fb0a0c6446ff84ad0aaf8..b416bb2ab5f721379707f392fc21f12809b03836 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)