diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-07 12:43:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-05-07 15:48:16 +0200 |
commit | 6a45cb6a037356b891bd13d3f633f83962df7abf (patch) | |
tree | ac43f146934996d583339bcf56da8686bda9de14 /vcl/unx/gtk3 | |
parent | 2aabb00d573be097f9d2e9ae4950991035cdcfc4 (diff) |
avoid unnecessary SAL_WARN
Change-Id: I48db543231f0b7abb7e27173b9bbfd0b657dc716
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151457
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx/gtk3')
-rw-r--r-- | vcl/unx/gtk3/a11y/atklistener.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |