summaryrefslogtreecommitdiffstats
path: root/libimagentrylink
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-10-15 11:24:42 +0200
committerMatthias Beyer <mail@beyermatthias.de>2016-10-15 11:24:42 +0200
commit6d31913321090c819bdcd5f43441a5c8efc22a13 (patch)
tree1f385db7adac74a47b409f6a331e915143e2c44d /libimagentrylink
parent9c29bf19dadb35914942925c8c1716266f313ecf (diff)
Fix bug: We have to compare StoreId objects without their base
Diffstat (limited to 'libimagentrylink')
-rw-r--r--libimagentrylink/src/internal.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/libimagentrylink/src/internal.rs b/libimagentrylink/src/internal.rs
index 267739ef..966968a5 100644
--- a/libimagentrylink/src/internal.rs
+++ b/libimagentrylink/src/internal.rs
@@ -157,8 +157,8 @@ impl InternalLinker for Entry {
}
fn remove_internal_link(&mut self, link: &mut Entry) -> Result<()> {
- let own_loc = link.get_location().clone();
- let other_loc = link.get_location().clone();
+ let own_loc = self.get_location().clone().without_base();
+ let other_loc = link.get_location().clone().without_base();
debug!("Removing internal link from {:?} to {:?}", own_loc, other_loc);