mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
93b643d856
commit
d9f7c5807b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue