From 92e121657493df47e21187c35e8185e255fe03b3 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 24 May 2016 00:49:35 +0200 Subject: [PATCH] fix(fonts): Default offset to 0 if not specified --- src/bar.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bar.cpp b/src/bar.cpp index 751cfb78..4fca042a 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -128,6 +128,8 @@ Bar::Bar() for (auto f : config::get_list(this->config_path, "font")) { std::vector font; string::split_into(f, ';', font); + if (font.size() < 2) + font.emplace_back("0"); this->opts->fonts.emplace_back(std::make_unique(font[0], std::stoi(font[1]))); } }