summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2013-09-10 21:24:49 +0200
committerCaolán McNamara <caolanm@redhat.com>2013-09-19 13:52:11 +0100
commitb249776e52846c74c44ebe9e9b00364f3acda97f (patch)
treebedc5a46bfd1aa0b112a18943cb70f55a9243b4d
parent8d0249a128e0823a2ab30f1c7f67f6b1326cffbb (diff)
Really loop over ExtInput ring
Change-Id: I13e4ec0daa40f60a563b1fd39094b86bf3709c47
-rw-r--r--sw/source/core/doc/extinput.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/extinput.cxx b/sw/source/core/doc/extinput.cxx
index f997ba7dfdb9..92075ab48979 100644
--- a/sw/source/core/doc/extinput.cxx
+++ b/sw/source/core/doc/extinput.cxx
@@ -283,7 +283,8 @@ SwExtTextInput* SwDoc::GetExtTextInput( const SwNode& rNd,
pRet = pTmp;
break;
}
- } while( mpExtInputRing != (pTmp = (SwExtTextInput*)mpExtInputRing ) );
+ pTmp = static_cast<SwExtTextInput*>(pTmp->GetNext());
+ } while ( pTmp!=mpExtInputRing );
}
return pRet;
}