Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArt/tablock.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArt/tablock.py')
-rw-r--r--TurtleArt/tablock.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index 81bdd2a..5f3315a 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -371,11 +371,11 @@ class Block:
return
dx = (self.spr.label_width() - self.spr.label_safe_width()) / \
self.scale
- if self.dx + dx >= self.block_list.max_width and \
- self.name == 'string':
+ if self.dx + dx >= self.block_list.max_width and self.name == 'string':
self.dx = self.block_list.max_width
self.refresh()
- self._set_labels(0, self.spr.labels[0])
+ for i, label in enumerate(self.spr.labels):
+ self._set_labels(i, label)
elif dx != 0:
self.dx += dx
if self.dx < 0:
@@ -640,7 +640,7 @@ class Block:
else:
n = 0
if self.name in block_names:
- n = len(block_names[self.name])
+ n = len(self.spr.labels)
elif self.name not in BLOCKS_WITH_SKIN:
debug_output('WARNING: unknown block name %s' % (self.name))
for i in range(n):