Parse hash before adding picture to dive.

Without this, when loading from git, the pictures are added
without hashes.

Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2015-10-14 17:04:05 +02:00 committed by Dirk Hohndel
parent 93b643d856
commit d9f7c5807b

View file

@ -1518,9 +1518,9 @@ static int parse_picture_entry(git_repository *repo, const git_tree_entry *entry
pic = alloc_picture();
pic->offset.seconds = offset;
dive_add_picture(active_dive, pic);
for_each_line(blob, picture_parser, pic);
dive_add_picture(active_dive, pic);
git_blob_free(blob);
return 0;
}