Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit df50706

Browse files
authored
Update svgpath.lcb
1 parent a387a35 commit df50706

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/widgets/svgpath/svgpath.lcb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,9 @@ public handler OnLoad(in pProperties as Array)
287287
put pProperties["maintain aspect ratio"] into mMaintainAspectRatio
288288
put pProperties["flip vertically"] into mFlipVertically
289289
put pProperties["angle"] into mAngle
290-
put pProperties["iconPresetName"] into mPathName
290+
if "iconPresetName" is among the keys of pProperties then
291+
put pProperties["iconPresetName"] into mPathName
292+
end if
291293
// Older SVG widgets do not have this property
292294
if "fillRule" is among the keys of pProperties then
293295
put pProperties["fillRule"] into mFillRule

0 commit comments

Comments
 (0)