diff options
author | Matteo Casalin <matteo.casalin@gmx.com> | 2012-02-19 18:02:12 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@gmx.com> | 2012-03-03 09:49:34 +0100 |
commit | 1cc064f1a414446791903bb84c9f166cd3185e14 (patch) | |
tree | a3b025f7339db60f8ff732b341e07c44ec2fdcc1 /svtools/source | |
parent | 243fa9392f1bbfaee41571b3d227535d1c49556a (diff) |
ValueSet: fix safety check - failure value of GetItemId is 0, not -1
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/valueacc.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 ); |