Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/TurtleArtActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'TurtleArtActivity.py')
-rw-r--r--TurtleArtActivity.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/TurtleArtActivity.py b/TurtleArtActivity.py
index 09d4d52..976d79a 100644
--- a/TurtleArtActivity.py
+++ b/TurtleArtActivity.py
@@ -815,6 +815,8 @@ class TurtleArtActivity(activity.Activity):
if len(palette_names) > max_palettes:
max_palettes -= 1 # Make room for the palette button
overflow = len(palette_names) - max_palettes
+ if overflow < 0:
+ overflow = 1 # Force overflow to be positive
if gtk.gdk.screen_width() - style.GRID_CELL_SIZE < \
int(overflow * (style.GRID_CELL_SIZE + 2)):
width = gtk.gdk.screen_width() - style.GRID_CELL_SIZE