Kaydet (Commit) eba9a6c4 authored tarafından Michael Stahl's avatar Michael Stahl

vcl: fix drmemory warning in UniscribeLayout::DropGlyph()

It says there's access to uninitialized variable on that line,
so propbably the loop is running over.

Change-Id: I0226f82b20a6fbbc79af5bbb46af09830c3bc25a
üst 99eaa798
......@@ -1495,7 +1495,7 @@ void UniscribeLayout::DropGlyph( int nStartx8 )
DBG_ASSERT( nStart <= mnGlyphCount, "USPLayout::DropG overflow" );
int j = pVI->mnMinGlyphPos;
while (mpOutGlyphs[j] == DROPPED_OUTGLYPH) j++;
while (j < mnGlyphCount && mpOutGlyphs[j] == DROPPED_OUTGLYPH) j++;
if (j == nStart)
{
pVI->mnXOffset += ((mpJustifications)? mpJustifications[nStart] : mpGlyphAdvances[nStart]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment