mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-27 21:24:48 +01:00
Fixed uninitialized visibility property
This commit is contained in:
parent
fe97e9d238
commit
7822bdd42c
@ -352,6 +352,8 @@ Style::Layer::Layout::Layout(const QJsonObject &json)
|
|||||||
// visibility
|
// visibility
|
||||||
if (json.contains("visibility") && json["visibility"].isString())
|
if (json.contains("visibility") && json["visibility"].isString())
|
||||||
_visible = !(json["visibility"].toString() == "none");
|
_visible = !(json["visibility"].toString() == "none");
|
||||||
|
else
|
||||||
|
_visible = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
QFont Style::Layer::Layout::font(int zoom) const
|
QFont Style::Layer::Layout::font(int zoom) const
|
||||||
|
Loading…
Reference in New Issue
Block a user