From 1cc064f1a414446791903bb84c9f166cd3185e14 Mon Sep 17 00:00:00 2001 From: Matteo Casalin Date: Sun, 19 Feb 2012 18:02:12 +0100 Subject: ValueSet: fix safety check - failure value of GetItemId is 0, not -1 --- svtools/source/control/valueacc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svtools/source') diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 61aec1a14555..f4405f815701 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -436,7 +436,7 @@ uno::Reference< accessibility::XAccessible > SAL_CALL ValueSetAcc::getAccessible const sal_uInt16 nItemId = mpParent->GetItemId( Point( aPoint.X, aPoint.Y ) ); uno::Reference< accessibility::XAccessible > xRet; - if( ((sal_uInt16)-1) != nItemId ) + if ( nItemId ) { const size_t nItemPos = mpParent->GetItemPos( nItemId ); -- cgit