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

vcl: convert to assert in UniscribeLayout::DropGlyph()

Change-Id: I918a47da16a539f981baa9a8c1e5a7a5cf642cf4
üst eba9a6c4
......@@ -1482,7 +1482,7 @@ void UniscribeLayout::DropGlyph( int nStartx8 )
{
DBG_ASSERT( !(nStartx8 & 0xff), "USP::DropGlyph(): glyph injection not disabled!" );
int nStart = nStartx8 >> 8;
DBG_ASSERT( nStart<=mnGlyphCount, "USPLayout::MoveG nStart overflow" );
assert(nStart <= mnGlyphCount);
if( nStart > 0 ) // nStart>0 means absolute glyph pos + 1
--nStart;
......@@ -1492,7 +1492,7 @@ void UniscribeLayout::DropGlyph( int nStartx8 )
for( int i = mnItemCount, nDummy; --i >= 0; ++pVI )
if( GetItemSubrange( *pVI, nStart, nDummy ) )
break;
DBG_ASSERT( nStart <= mnGlyphCount, "USPLayout::DropG overflow" );
assert(nStart <= mnGlyphCount);
int j = pVI->mnMinGlyphPos;
while (j < mnGlyphCount && mpOutGlyphs[j] == DROPPED_OUTGLYPH) j++;
......
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