Kaydet (Commit) 001bd53a authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#1038302 (unlikely) invalid iterator use

Change-Id: Iff61209eb840d5b6722b651580a77ae50d610460
üst 2f0a0367
...@@ -1392,6 +1392,9 @@ int GenericSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos ...@@ -1392,6 +1392,9 @@ int GenericSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos
if( nStart >= (int)m_GlyphItems.size() ) if( nStart >= (int)m_GlyphItems.size() )
return 0; return 0;
if( pG == pGEnd )
return 0;
// calculate absolute position in pixel units // calculate absolute position in pixel units
Point aRelativePos = pG->maLinearPos - maBasePoint; Point aRelativePos = pG->maLinearPos - maBasePoint;
......
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