diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-31 21:08:42 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-31 21:09:14 +0200 |
commit | 95eaa342814a8ccccfe9fe2d82ca2711b6b8fb02 (patch) | |
tree | 00b2f98f0d0854142b777f8981d7c9ffe459e878 /vcl/win | |
parent | 0f32a95d0af6a19c80f9b7e14fab8753067d3ddf (diff) |
cppcheck: Array index is used before limits check
Change-Id: I531430ce4bc0937a023d3e2849ae07d8f94e3e70
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/source/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/source/gdi/winlayout.cxx b/vcl/win/source/gdi/winlayout.cxx index 80f94aea354c..78a2d2d3b588 100644 --- a/vcl/win/source/gdi/winlayout.cxx +++ b/vcl/win/source/gdi/winlayout.cxx @@ -2047,7 +2047,7 @@ void UniscribeLayout::Simplify( bool /*bIsBase*/ ) int nMinGlyphPos, nEndGlyphPos, nOrigMinGlyphPos = rVI.mnMinGlyphPos; GetItemSubrange( rVI, nMinGlyphPos, nEndGlyphPos ); i = nMinGlyphPos; - while( (mpOutGlyphs[i] == cDroppedGlyph) && (i < nEndGlyphPos) ) + while( (i < nEndGlyphPos) && (mpOutGlyphs[i] == cDroppedGlyph) ) { rVI.mnMinGlyphPos = ++i; } |