Added correct line-width default value

This commit is contained in:
Martin Tůma 2018-10-30 23:29:26 +01:00
parent 8109e705c6
commit 7532debc52
2 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ bool Style::Layer::Filter::match(const QVariantMap &tags) const
}
Style::Layer::Paint::Paint(const QJsonObject &json)
: _fillOpacity(1.0), _lineOpacity(1.0), _fillAntialias(true)
: _fillOpacity(1.0), _lineOpacity(1.0), _lineWidth(1.0), _fillAntialias(true)
{
if (json.contains("fill-opacity") && json["fill-opacity"].isDouble())
_fillOpacity = FunctionF(json["fill-opacity"].toDouble());

View File

@ -100,8 +100,8 @@ private:
class Paint {
public:
Paint() : _fillOpacity(1.0), _lineOpacity(1.0), _fillAntialias(true)
{}
Paint() : _fillOpacity(1.0), _lineOpacity(1.0), _lineWidth(1.0),
_fillAntialias(true) {}
Paint(const QJsonObject &json);
QPen pen(Layer::Type type, int zoom) const;