Skip to content

Commit 227b02d

Browse files
committed
Fixed icon size initialization
1 parent 2d2bd06 commit 227b02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ Style::Layer::Layout::Layout(const QJsonObject &json)
390390

391391
// icon
392392
_icon = Template(FunctionS(json["icon-image"]));
393-
_iconSize = FunctionF(json["icon-size"]);
393+
_iconSize = FunctionF(json["icon-size"], 1.0);
394394

395395
// symbol
396396
_symbolPlacement = FunctionS(json["symbol-placement"]);

0 commit comments

Comments
 (0)