Fixed misused variable.
This commit is contained in:
@@ -228,7 +228,7 @@ static std::shared_ptr<bar_config_t> parse_bar_config_from_json(const Json::Val
|
|||||||
std::string position = value["position"].asString();
|
std::string position = value["position"].asString();
|
||||||
if (position == "top") {
|
if (position == "top") {
|
||||||
bc->position = Position::TOP;
|
bc->position = Position::TOP;
|
||||||
} else if (mode == "bottom") {
|
} else if (position == "bottom") {
|
||||||
bc->position = Position::BOTTOM;
|
bc->position = Position::BOTTOM;
|
||||||
} else {
|
} else {
|
||||||
bc->position = Position::UNKNOWN;
|
bc->position = Position::UNKNOWN;
|
||||||
|
|||||||
Reference in New Issue
Block a user