From 94b20b4d837b4a32506383999e0d4ba18588c1ad Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Sun, 20 Aug 2006 19:37:44 +0000 Subject: [PATCH] Update svn: r7214 --- gramps2/src/plugins/MediaManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps2/src/plugins/MediaManager.py b/gramps2/src/plugins/MediaManager.py index 22f423a3f..65fbc19cf 100644 --- a/gramps2/src/plugins/MediaManager.py +++ b/gramps2/src/plugins/MediaManager.py @@ -569,7 +569,7 @@ def get_rel_path(db_dir,obj_path): ndirs = len(db_dir_list) # Compare words in both lists - for word_ix in range(len(db_dir_list)): + for word_ix in range(min(len(db_dir_list),len(obj_dir_list))): # A common word reduces the trip by one '../' and one word if db_dir_list[word_ix] == obj_dir_list[word_ix]: ndirs -= 1