vcl/unx/gtk3/a11y/atklistener.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 6a45cb6a037356b891bd13d3f633f83962df7abf Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Sun May 7 12:43:53 2023 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun May 7 15:48:16 2023 +0200 avoid unnecessary SAL_WARN Change-Id: I48db543231f0b7abb7e27173b9bbfd0b657dc716 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151457 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/vcl/unx/gtk3/a11y/atklistener.cxx b/vcl/unx/gtk3/a11y/atklistener.cxx index 57f40af1db06..130e69e1e249 100644 --- a/vcl/unx/gtk3/a11y/atklistener.cxx +++ b/vcl/unx/gtk3/a11y/atklistener.cxx @@ -204,7 +204,7 @@ void AtkListener::handleChildRemoved( int nChildIndexHint) { sal_Int32 nIndex = nChildIndexHint; - if (nIndex < 0 || nIndex >= static_cast<sal_Int32>(m_aChildList.size())) + if (nIndex != -1 && (nIndex < 0 || nIndex >= static_cast<sal_Int32>(m_aChildList.size()))) { SAL_WARN("vcl", "index hint out of range, ignoring"); nIndex = -1;