Index: src/af/gr/xp/gr_RenderInfo.cpp =================================================================== RCS file: /cvsroot/abi/src/af/gr/xp/gr_RenderInfo.cpp,v retrieving revision 1.20 diff -u -p -u -r1.20 gr_RenderInfo.cpp --- src/af/gr/xp/gr_RenderInfo.cpp 26 Jun 2004 14:18:45 -0000 1.20 +++ src/af/gr/xp/gr_RenderInfo.cpp 15 Aug 2004 02:21:02 -0000 @@ -768,7 +768,7 @@ void GR_XPRenderInfo::_calculateCharAdva { for(UT_sint32 n = 0; n < m_iLength; n++) { - if(s_pWidthBuff[n+1] < 0 || s_pWidthBuff[n+1] >= GR_OC_LEFT_FLUSHED) + if((n < m_iLength - 1) && ((s_pWidthBuff[n+1] < 0) || (s_pWidthBuff[n+1] >= GR_OC_LEFT_FLUSHED))) { // remember the width of the non-zero character UT_sint32 iWidth = s_pWidthBuff[n];