1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
This commit is contained in:
John Camelon 2004-05-20 17:52:23 +00:00
parent f3a361e83a
commit 0490a7b6ae

View file

@ -300,10 +300,13 @@ private boolean isPositionedCorrectly(ICElement element) {
while(lastNewPrevious != newPrevious) { while(lastNewPrevious != newPrevious) {
if (isIdentical((CElement)oldPrevious, (CElement)newPrevious)) if (isIdentical((CElement)oldPrevious, (CElement)newPrevious))
return true; return true;
ICElement tempLastPrevious = lastNewPrevious; //JOHNC added this
lastNewPrevious = newPrevious; lastNewPrevious = newPrevious;
// if newPrevious is null at this time we should exit the loop. // if newPrevious is null at this time we should exit the loop.
if (newPrevious == null) break; if (newPrevious == null) break;
newPrevious = (this.getNewPosition(newPrevious)).previous; ICElement tempPrevious = (this.getNewPosition(newPrevious)).previous; //JOHNC added this
if( tempLastPrevious == tempPrevious ) break; // JOHNC added this
newPrevious = tempPrevious;
} }
return false; return false;
} }