diff options
author | Michael Stahl <mst@openoffice.org> | 2012-07-27 17:31:08 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-27 17:50:22 +0200 |
commit | 6a94d7b5c924e3a8ef3ff0f68f54061c035a3cb0 (patch) | |
tree | d042709f848a900386493db45c687679e79eaa0c /extensions | |
parent | 89f08dce89adfddd3fb8e00b7a7a9c5da2a4943e (diff) |
basic, cui, extensions, filter, vcl: fix some warnings
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/scanner/sane.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index 3ace08b76098..8159b1a45b4c 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -1002,7 +1002,7 @@ String Sane::GetOptionUnitName( int n ) String aText; SANE_Unit nUnit = mppOptions[n]->unit; size_t nUnitAsSize = (size_t)nUnit; - if( nUnitAsSize > SAL_N_ELEMENTS( ppUnits ) ) + if (nUnitAsSize >= SAL_N_ELEMENTS( ppUnits )) aText = rtl::OUString("[unknown units]"); else aText = String( ppUnits[ nUnit ], osl_getThreadTextEncoding() ); |