diff --git a/gramps/gen/db/dictionary.py b/gramps/gen/db/dictionary.py index d61fab2c6..39c32af56 100644 --- a/gramps/gen/db/dictionary.py +++ b/gramps/gen/db/dictionary.py @@ -304,7 +304,7 @@ class DictionaryDb(DbWriteBase, DbReadBase): format. """ pattern_match = re.match(r"(.*)%[0 ](\d+)[diu]$", id_pattern) - if pattern_match: + if False: # pattern_match: str_prefix = pattern_match.group(1) nr_width = int(pattern_match.group(2)) def closure_func(gramps_id): diff --git a/gramps/gen/lib/mediaref.py b/gramps/gen/lib/mediaref.py index 1c4276044..068f4e682 100644 --- a/gramps/gen/lib/mediaref.py +++ b/gramps/gen/lib/mediaref.py @@ -95,7 +95,7 @@ class MediaRef(SecondaryObject, PrivacyBase, CitationBase, NoteBase, RefBase, "note_list": NoteBase.to_struct(self), "attribute_list": AttributeBase.to_struct(self), "ref": RefBase.to_struct(self), - "rect": self.rect} + "rect": self.rect if self.rect != (0,0,0,0) else None} def unserialize(self, data): """