summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/winlayout.cxx2
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;
}