Skip to content

Commit b7314b8

Browse files
committed
Fix insert shape in Line
1 parent f87624f commit b7314b8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

modules/ILL/ILL.moon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module_version = "1.5.7"
1+
module_version = "1.5.8"
22

33
haveDepCtrl, DependencyControl = pcall require, "l0.DependencyControl"
44

modules/ILL/ILL/Ass/Ass.moon

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,10 @@ class Ass
176176

177177
-- sets the final value of the text
178178
setText: (l) ->
179-
if not l.isShape and Util.checkClass l.text, "Text"
180-
copyInstance = Table.copy l.text
181-
l.text = l.text\__tostring!
182-
return copyInstance
183-
elseif l.isShape and Util.checkClass l.text, "Text"
179+
if Util.checkClass l.text, "Text"
180+
if l.isShape
181+
l.text = l.tags\__tostring! .. l.shape
182+
return
184183
copyInstance = Table.copy l.text
185184
l.text = l.text\__tostring!
186185
return copyInstance

0 commit comments

Comments
 (0)