Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-11-12 19:08:28 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-11-12 19:08:28 (GMT)
commit77d59213300b645df1644593ba23b87adfb7336b (patch)
tree7959f697882e2199c3dabbd92dedc863b16f1ec8
parent161c8b65b6041fac508b7a03c74d4a4ff50edd51 (diff)
don't ever label blocks with image as label
-rw-r--r--TurtleArt/tablock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/TurtleArt/tablock.py b/TurtleArt/tablock.py
index b39ceaa..9432626 100644
--- a/TurtleArt/tablock.py
+++ b/TurtleArt/tablock.py
@@ -25,7 +25,7 @@ import cairo
from taconstants import (EXPANDABLE, EXPANDABLE_ARGS, OLD_NAMES, CONSTANTS,
STANDARD_STROKE_WIDTH, BLOCK_SCALE, BOX_COLORS,
GRADIENT_COLOR, EXPANDABLE_FLOW, Color,
- MEDIA_BLOCK2TYPE)
+ MEDIA_BLOCK2TYPE, BLOCKS_WITH_SKIN)
from tapalette import (palette_blocks, block_colors, expandable_blocks,
content_blocks, block_names, block_primitives,
block_styles, special_block_colors)
@@ -698,7 +698,7 @@ class Block:
def _set_labels(self, i, label):
- if self.spr is None:
+ if self.spr is None or self.name in BLOCKS_WITH_SKIN:
return
self.spr.set_label(label, i)