diff options
-rw-r--r-- | TurtleArtActivity.py | 2 |
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 |