From: Michael Stapelberg Date: Sat, 4 Jan 2014 20:59:41 +0000 (+0100) Subject: run con_fix_percent unconditionally, not only on parsing errors X-Git-Tag: 4.8~157 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=18e6184f1cbd6138f183cd60ec3157b49fe20824;p=i3%2Fi3 run con_fix_percent unconditionally, not only on parsing errors --- 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);