From 18e6184f1cbd6138f183cd60ec3157b49fe20824 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 4 Jan 2014 21:59:41 +0100 Subject: [PATCH] run con_fix_percent unconditionally, not only on parsing errors --- src/load_layout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/load_layout.c b/src/load_layout.c index c95bc99f..de56cbcb 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -444,13 +444,13 @@ void tree_append_json(const char *filename, char **errormsg) { if (errormsg != NULL) *errormsg = sstrdup((const char*)str); yajl_free_error(hand, str); - - /* In case not all containers were restored, we need to fix the - * percentages, otherwise i3 will crash immediately when rendering the - * next time. */ - con_fix_percent(focused); } + /* In case not all containers were restored, we need to fix the + * percentages, otherwise i3 will crash immediately when rendering the + * next time. */ + con_fix_percent(focused); + setlocale(LC_NUMERIC, ""); #if YAJL_MAJOR >= 2 yajl_complete_parse(hand); -- 2.39.5