remove problem inserted by a DECLARE_LIST removal
the DECLARE_LIST container decremented the internal index pointin to the current element when REMOVE was called, when we now iterate over the new container and remove an element we must do this ourself
This commit is contained in:
parent
bded50069f
commit
a015d23d8f
1 changed files with 3 additions and 1 deletions
|
@ -315,6 +315,7 @@ void ScRangeList::Join( const ScRange& r, bool bIsInList )
|
|||
if ( bIsInList )
|
||||
{ // innerhalb der Liste Range loeschen
|
||||
Remove(nOldPos);
|
||||
i--;
|
||||
delete pOver;
|
||||
pOver = NULL;
|
||||
if ( nOldPos )
|
||||
|
@ -804,7 +805,7 @@ void ScRangePairList::Join( const ScRangePair& r, bool bIsInList )
|
|||
}
|
||||
bool bJoinedInput = false;
|
||||
|
||||
for ( size_t i = 0, nPairs = maPairs.size(); i < nPairs && pOver; ++i )
|
||||
for ( size_t i = 0; i < maPairs.size() && pOver; ++i )
|
||||
{
|
||||
ScRangePair* p = maPairs[ i ];
|
||||
if ( p == pOver )
|
||||
|
@ -878,6 +879,7 @@ void ScRangePairList::Join( const ScRangePair& r, bool bIsInList )
|
|||
if ( bIsInList )
|
||||
{ // innerhalb der Liste RangePair loeschen
|
||||
Remove( nOldPos );
|
||||
i--;
|
||||
delete pOver;
|
||||
pOver = NULL;
|
||||
if ( nOldPos )
|
||||
|
|
Loading…
Reference in a new issue