diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:27:41 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-12-19 11:31:14 +0000 |
commit | 001bd53a18c3566ee92344d5f00f6b575c63f9fa (patch) | |
tree | e64d25032fedbeed2643b2f4b01dc62401832e7a /vcl | |
parent | 2f0a036745828dde5b2b63d4a59e5a6fd677e097 (diff) |
CID#1038302 (unlikely) invalid iterator use
Change-Id: Iff61209eb840d5b6722b651580a77ae50d610460
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/sallayout.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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; |