From 6d660240ba79ea710fc80e816871413c953ee604 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Apr 2011 07:34:46 +0200 Subject: [PATCH] Only include an image in the fingerprint if it has been inserted. --- src/main/java/net/pterodactylus/sone/data/Album.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/data/Album.java b/src/main/java/net/pterodactylus/sone/data/Album.java index d7df845..ac7e11d 100644 --- a/src/main/java/net/pterodactylus/sone/data/Album.java +++ b/src/main/java/net/pterodactylus/sone/data/Album.java @@ -298,7 +298,9 @@ public class Album implements Fingerprintable { /* add images. */ fingerprint.append("Images("); for (Image image : images) { - fingerprint.append(image.getFingerprint()); + if (image.isInserted()) { + fingerprint.append(image.getFingerprint()); + } } fingerprint.append(')'); -- 2.7.4