From 74dbeebc538624f254a5ed9b4fa248fa070e9a63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Timm?= Date: Thu, 4 Sep 2008 09:20:30 +0000 Subject: [PATCH] INTEGRATION: CWS swenhancedfields2 (1.38.230); FILE MERGED 2008/08/12 12:09:45 b_michaelsen 1.38.230.3: explicit casts to prevent win32 warnings 2008/08/04 14:17:33 b_michaelsen 1.38.230.2: RESYNC: (1.38-1.39); FILE MERGED 2008/04/23 14:29:17 ama 1.38.230.1: #i33737#: Enhanced fields --- sw/source/core/text/itratr.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/sw/source/core/text/itratr.cxx b/sw/source/core/text/itratr.cxx index 76eb382b5b04..c07ff50d57ea 100644 --- a/sw/source/core/text/itratr.cxx +++ b/sw/source/core/text/itratr.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: itratr.cxx,v $ - * $Revision: 1.39 $ + * $Revision: 1.40 $ * * This file is part of OpenOffice.org. * @@ -346,6 +346,17 @@ xub_StrLen SwAttrIter::GetNextAttr( ) const if ( nNextEndLen()?nNext:m_pTxtNode->Len()); + USHORT p=nPos; + const sal_Unicode *txt=m_pTxtNode->GetTxt().GetBuffer(); + while(pnPos) || nNext<=p) + nNext=p; + else + nNext=p+1; + } if( pRedln ) return pRedln->GetNextRedln( nNext ); return nNext;