From b22322bfd104949b93d1df22ff36689747917448 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 15 Nov 2021 19:22:06 +0100 Subject: config: letter-spacing: add missing ‘return’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The missing return caused us to fall through to the bottom of the function, where we ended with an error message: [main].letter-spacing: 0: not a valid option: letter-spacing Closes #795 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config.c') diff --git a/config.c b/config.c index 905f26d6..2f12e201 100644 --- a/config.c +++ b/config.c @@ -956,7 +956,7 @@ parse_section_main(struct context *ctx) return value_to_pt_or_px(ctx, &conf->line_height); else if (strcmp(key, "letter-spacing") == 0) - value_to_pt_or_px(ctx, &conf->letter_spacing); + return value_to_pt_or_px(ctx, &conf->letter_spacing); else if (strcmp(key, "horizontal-letter-offset") == 0) return value_to_pt_or_px(ctx, &conf->horizontal_letter_offset); -- cgit v1.3