Changed externalBoundaryCheck logic

This commit is contained in:
Digital Artifex
2026-06-08 07:23:05 -04:00
parent 34787c2d9d
commit 8aecedf669
@@ -176,11 +176,11 @@ private:
*/
auto externalBoundaryCheck(qsizetype index) -> bool
{
return !(
index < 0 ||
return (
index > 0 &&
(
m_totalCount != std::numeric_limits<qsizetype>::infinity() &&
index >= m_totalCount
m_totalCount == std::numeric_limits<qsizetype>::infinity() ||
index < m_totalCount
)
);
}