mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 04:15:35 +02:00
Bug 115385: Pointer to a structure is not updated correctly.
This commit is contained in:
parent
588b729fb6
commit
fd1c565981
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2005-11-07 Mikhail Khodjaiants
|
||||
Bug 115385: Pointer to a structure is not updated correctly
|
||||
* CVariable.java
|
||||
|
||||
2005-10-24 Mikhail Khodjaiants
|
||||
Fix for bugs 112008 and 111828.
|
||||
Applied modified patch from Matthias Spycher (matthias@coware.com).
|
||||
|
|
|
@ -533,6 +533,11 @@ public abstract class CVariable extends AbstractCVariable implements ICDIEventLi
|
|||
*/
|
||||
public boolean equals( Object obj ) {
|
||||
if ( obj instanceof CVariable ) {
|
||||
// A disposed copy can be stored in the viewer.
|
||||
// false should be returned to force the viewer to
|
||||
// replace it by a new variable. See bug #115385
|
||||
if ( isDisposed() != ((CVariable)obj).isDisposed() )
|
||||
return false;
|
||||
IInternalVariable iv = getOriginal();
|
||||
return ( iv != null ) ? iv.equals( ((CVariable)obj).getOriginal() ) : false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue