lorid

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

commit 2a708443ab978f85c2417ebae6a7adc386376996
parent 64c71617fbea5090c217b79e8a4ea596dd9c93d2
Author: nibo <nibo@relim.de>
Date:   Thu, 26 Dec 2024 08:48:57 +0100

Ensure MIN_CHORD_GAP_WIDTH between text aboves (chord/annotation)

Diffstat:
Mout_pdf.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/out_pdf.c b/out_pdf.c @@ -1172,7 +1172,7 @@ calc_space_between_text_above( } i++; width_between = width_until_cur - width_until_prev; - if (prev_width >= width_between) { + if (prev_width + MIN_CHORD_GAP_WIDTH >= width_between) { space.text_above_index = i; space.amount = prev_width - width_between + MIN_CHORD_GAP_WIDTH; *spaces = erealloc(*spaces, (sp+1) * sizeof(struct SpaceNeeded *));