Fixing failed build: Parts of a struct were initialised in wrong order, C99-style designated initialisers did not prevent this from causing an error.

This commit is contained in:
mox
2016-04-19 22:31:44 +02:00
parent 26dc81afbf
commit dfe121ab09

View File

@@ -242,8 +242,8 @@ std::vector<output_t> I3Connection::get_outputs() const {
outputs.push_back({ outputs.push_back({
.name = name.asString(), .name = name.asString(),
.active = active.asBool(), .active = active.asBool(),
.rect = parse_rect_from_json(rect),
.current_workspace = (current_workspace.isNull() ? std::string() : current_workspace.asString()), .current_workspace = (current_workspace.isNull() ? std::string() : current_workspace.asString()),
.rect = parse_rect_from_json(rect),
}); });
} }