Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 227977 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/draw2d/geometry/PrecisionDimension.java (+11 lines)
Lines 83-86 Link Here
83
	return preciseHeight;
83
	return preciseHeight;
84
}
84
}
85
85
86
/**
87
 * @see org.eclipse.draw2d.geometry.Dimension#equals(java.lang.Object)
88
 */
89
public boolean equals(Object o) {
90
	if (o instanceof PrecisionDimension) {
91
		PrecisionDimension d = (PrecisionDimension)o;
92
		return d.preciseWidth == preciseWidth && d.preciseHeight == preciseHeight;
93
	}
94
	return super.equals(o);
95
}
96
86
}
97
}
(-)src/org/eclipse/draw2d/geometry/PrecisionPoint.java (+12 lines)
Lines 118-121 Link Here
118
	return preciseY;
118
	return preciseY;
119
}
119
}
120
120
121
/**
122
 * @see org.eclipse.draw2d.geometry.Point#equals(java.lang.Object)
123
 */
124
public boolean equals(Object o) {
125
	if (o instanceof PrecisionPoint) {
126
		PrecisionPoint p = (PrecisionPoint)o;
127
		return p.preciseX == preciseX && p.preciseY == preciseY;
128
	}
129
	return super.equals(o);
130
}
131
132
121
}
133
}

Return to bug 227977