Fix CalibrationPointPairCompare's comparison
This fixes a crash when building with _LIBCPP_DEBUG=0. The comparison should also check pair_1.first.y() > pair_2.first.y() before moving on to the x-coordinates. gfx::Point already defines a comparision function which matches the one here (compare y first, then x), so just use that. Bug: 923166 Change-Id: Ie3eb7d76d4e6f0a1cbc56140059f260ce6313365 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1894101 Auto-Submit: David Benjamin <davidben@chromium.org> Reviewed-by:Malay Keshav <malaykeshav@chromium.org> Reviewed-by:
Mitsuru Oshima <oshima@chromium.org> Commit-Queue: David Benjamin <davidben@chromium.org> Cr-Commit-Position: refs/heads/master@{#711753}
Showing
Please register or sign in to comment