From: Jérôme Benoit Date: Mon, 5 Mar 2018 13:06:29 +0000 (+0100) Subject: TP2: Fix the Image compare method. X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=commitdiff_plain;h=878508f5a083290baab7478f23794d222fd875f4 TP2: Fix the Image compare method. Signed-off-by: Jérôme Benoit --- diff --git a/TP2/Image.java b/TP2/Image.java index 61dd270..007dd57 100644 --- a/TP2/Image.java +++ b/TP2/Image.java @@ -92,7 +92,7 @@ public class Image extends Forme implements Compactable, } public int compare(Image image1, Image image2) { - return image1.getSize() - image2.getSize(); + return image1.getpOri().getY() - image2.getpOri().getY(); } }