Add compareTo to ResourceDecalImage after merge with k-integration

This commit is contained in:
bkuker 2013-01-11 10:16:56 -05:00
parent 9ea9ed2d82
commit 115e0b143a

View File

@ -6,6 +6,7 @@ import java.io.IOException;
import java.io.InputStream;
import net.sf.openrocket.appearance.DecalImage;
import net.sf.openrocket.document.Attachment;
class ResourceDecalImage implements DecalImage {
@ -31,4 +32,9 @@ class ResourceDecalImage implements DecalImage {
}
@Override
public int compareTo(Attachment a) {
return this.hashCode() - a.hashCode();
}
}