[PATCH] fdo#37799: fixed broken loop causing a crash
Cédric Bosdonnat
cedric.bosdonnat.ooo at free.fr
Wed Jun 8 08:26:35 PDT 2011
---
sw/source/core/edit/edfld.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sw/source/core/edit/edfld.cxx b/sw/source/core/edit/edfld.cxx
index ebb1906..c07c4ef 100644
--- a/sw/source/core/edit/edfld.cxx
+++ b/sw/source/core/edit/edfld.cxx
@@ -204,7 +204,7 @@ void SwEditShell::FieldToText( SwFieldType* pType )
SwFieldHint aHint( pPaM );
SwClientIter aIter( *pType );
- for ( SwClient* pClient = aIter.GoStart(); pClient; aIter++ )
+ for ( SwClient* pClient = aIter.GoStart(); pClient; pClient = aIter++ )
{
pPaM->DeleteMark();
pClient->SwClientNotifyCall( *pType, aHint );
--
1.7.3.4
--=-A7TAJiKoBnf8F1YfGvlp--
More information about the LibreOffice
mailing list