mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=62656
This commit is contained in:
parent
f3a361e83a
commit
0490a7b6ae
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue