From 001bd53a18c3566ee92344d5f00f6b575c63f9fa Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 19 Dec 2013 11:27:41 +0000 Subject: CID#1038302 (unlikely) invalid iterator use Change-Id: Iff61209eb840d5b6722b651580a77ae50d610460 --- vcl/source/gdi/sallayout.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'vcl') diff --git a/vcl/source/gdi/sallayout.cxx b/vcl/source/gdi/sallayout.cxx index 6e0f9bffd0ba..8f5d5a1d2fe9 100644 --- a/vcl/source/gdi/sallayout.cxx +++ b/vcl/source/gdi/sallayout.cxx @@ -1392,6 +1392,9 @@ int GenericSalLayout::GetNextGlyphs( int nLen, sal_GlyphId* pGlyphs, Point& rPos if( nStart >= (int)m_GlyphItems.size() ) return 0; + if( pG == pGEnd ) + return 0; + // calculate absolute position in pixel units Point aRelativePos = pG->maLinearPos - maBasePoint; -- cgit