Fixed uninitialized visibility property

This commit is contained in:
Martin Tůma 2020-09-01 22:24:57 +02:00
parent fe97e9d238
commit 7822bdd42c

View File

@ -352,6 +352,8 @@ Style::Layer::Layout::Layout(const QJsonObject &json)
// visibility
if (json.contains("visibility") && json["visibility"].isString())
_visible = !(json["visibility"].toString() == "none");
else
_visible = true;
}
QFont Style::Layer::Layout::font(int zoom) const