summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorMichael Stahl <mst@openoffice.org>2012-08-02 12:07:32 +0200
committerPetr Mladek <pmladek@suse.cz>2012-08-02 15:38:29 +0200
commitb21ac0f0c6782804fad58a070e5b84aac711bc18 (patch)
treeb9571acd2177f7f7c90a4d04033784634e2ac61c /extensions
parentf15f1a61e4a5ccfacc8a0df78241ca205015ce3d (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.cxx2
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() );