Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/sprites.py
diff options
context:
space:
mode:
Diffstat (limited to 'sprites.py')
-rw-r--r--sprites.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sprites.py b/sprites.py
index e66a86d..9124494 100644
--- a/sprites.py
+++ b/sprites.py
@@ -283,6 +283,8 @@ class Sprite:
def draw_label(self):
my_width = self._width-self._margins[0]-self._margins[2]
+ if my_width < 0:
+ my_width = 0
my_height = self._height-self._margins[1]-self._margins[3]
for i in range(len(self.labels)):
pl = self._sprites.canvas.create_pango_layout(str(self.labels[i]))