lorid

convert chordpro to pdf
git clone git://git.relim.de/lorid.git
Log | Files | Refs | README | LICENSE

commit 0a255777901f6c39440829638b47d0bcc63c7cad
parent 8a62c19c899c643177e0d2448e9e457858457417
Author: nibo <nibo@relim.de>
Date:   Wed, 16 Oct 2024 13:45:11 +0200

Improve image asset stuff

Diffstat:
Mchordpro.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chordpro.c b/chordpro.c @@ -2320,6 +2320,7 @@ static struct ChoImage *cho_image_directive_parse(const char *str) cho_log(LOG_ERR, "There is no image asset with the id '%s'.", image->id); return NULL; } + image->src = strdup(asset->src); } } return image; @@ -3040,10 +3041,10 @@ struct ChoSong **cho_songs_parse(FILE *fp, const char *chordpro_filepath, struct g_image_assets[g_ia] = image; g_ia++; } else { + // Add image to ChoSong somehow + cho_debug_image_print(image); cho_image_free(image); } - // cho_debug_image_print(image); - // cho_image_free(image); break; case DT_PREAMBLE: cho_log(LOG_ERR, "Preamble directive '%s' can't have a value.", directive_name);