diff options
author | Matteo Casalin <matteo.casalin@gmx.com> | 2012-02-12 18:32:26 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@gmx.com> | 2012-02-17 18:57:44 +0100 |
commit | 97671937e2a8dfe65166ed04aa7c65d7bc3f477d (patch) | |
tree | eaa3d170ff1d4820977e3ba7d00732971a3d0c0d /svtools | |
parent | ValueSet: merge almost empty implementation to main class (diff) | |
download | core-97671937e2a8dfe65166ed04aa7c65d7bc3f477d.tar.gz core-97671937e2a8dfe65166ed04aa7c65d7bc3f477d.zip |
ValueSet: fix a test condition and remove an obsoleted header file
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/valueset.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svtools/source/control/valueset.cxx b/svtools/source/control/valueset.cxx index 345d3adf3a21..decbc99ba31d 100644 --- a/svtools/source/control/valueset.cxx +++ b/svtools/source/control/valueset.cxx @@ -27,7 +27,6 @@ ************************************************************************/ #include <tools/debug.hxx> -#include <tools/list.hxx> #include <vcl/decoview.hxx> #include <vcl/svapp.hxx> #include <vcl/scrbar.hxx> @@ -871,8 +870,8 @@ void ValueSet::ImplHideSelect( sal_uInt16 nItemId ) { Rectangle aRect; - sal_uInt16 nItemPos = GetItemPos( nItemId ); - if ( nItemPos != sal::static_int_cast<sal_uInt16>(LIST_ENTRY_NOTFOUND) ) + size_t nItemPos = GetItemPos( nItemId ); + if ( nItemPos != VALUESET_ITEM_NOTFOUND ) aRect = mItemList[nItemPos]->maRect; else { |