diff options
author | Michael Stahl <mst@openoffice.org> | 2012-08-02 12:07:32 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-08-02 15:38:29 +0200 |
commit | b21ac0f0c6782804fad58a070e5b84aac711bc18 (patch) | |
tree | b9571acd2177f7f7c90a4d04033784634e2ac61c /extensions | |
parent | f15f1a61e4a5ccfacc8a0df78241ca205015ce3d (diff) |
basic, cui, extensions, filter, vcl: fix some warnings
Signed-off-by: Petr Mladek <pmladek@suse.cz>
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 0bc0231a842a..77021a2bb267 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 = String::CreateFromAscii( "[unknown units]" ); else aText = String( ppUnits[ nUnit ], osl_getThreadTextEncoding() ); |