Hi all,

Could anyone review, sign-off and push to 3.4 branch the attached patch
fixing a broken loop? One less annoying bug for 3.4 ;)

Thanks,

-- 
Cédric Bosdonnat
LibreOffice hacker
http://documentfoundation.org
OOo Eclipse Integration developer
http://cedric.bosdonnat.free.fr
>From 7265c670608ebdc1006a89b9d478b22da2ab5e49 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= <cedric.bosdonnat....@free.fr>
Date: Wed, 8 Jun 2011 17:26:35 +0200
Subject: [PATCH] fdo#37799: fixed broken loop causing a crash

---
 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

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to