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 69-72 Link Here
69
	height = (int)Math.floor(preciseHeight + 0.000000001);	
69
	height = (int)Math.floor(preciseHeight + 0.000000001);	
70
}
70
}
71
71
72
/**
73
 * @see org.eclipse.draw2d.geometry.Dimension#equals(java.lang.Object)
74
 */
75
public boolean equals(Object o) {
76
	if (o instanceof PrecisionDimension) {
77
		PrecisionDimension d = (PrecisionDimension)o;
78
		return d.preciseWidth == preciseWidth && d.preciseHeight == preciseHeight;
79
	}
80
	return super.equals(o);
81
}
82
72
}
83
}
(-)src/org/eclipse/draw2d/geometry/PrecisionPoint.java (+11 lines)
Lines 118-121 Link Here
118
	y = (int)Math.floor(preciseY + 0.000000001);
118
	y = (int)Math.floor(preciseY + 0.000000001);
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
121
}
132
}

Return to bug 227977