mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-24 03:35:54 +01:00
Added correct line-width default value
This commit is contained in:
parent
8109e705c6
commit
7532debc52
@ -139,7 +139,7 @@ bool Style::Layer::Filter::match(const QVariantMap &tags) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
Style::Layer::Paint::Paint(const QJsonObject &json)
|
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())
|
if (json.contains("fill-opacity") && json["fill-opacity"].isDouble())
|
||||||
_fillOpacity = FunctionF(json["fill-opacity"].toDouble());
|
_fillOpacity = FunctionF(json["fill-opacity"].toDouble());
|
||||||
|
@ -100,8 +100,8 @@ private:
|
|||||||
|
|
||||||
class Paint {
|
class Paint {
|
||||||
public:
|
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);
|
Paint(const QJsonObject &json);
|
||||||
|
|
||||||
QPen pen(Layer::Type type, int zoom) const;
|
QPen pen(Layer::Type type, int zoom) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user