Skip to content

Commit

Permalink
scratch14: Thumbnail save fix
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
tjvr committed Oct 5, 2013
1 parent 8c417ff commit be672f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions kurt/scratch14/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,14 @@ def save(self, fp, project):
self.stage = self.UserObject("ScratchStageMorph")

# project info
thumbnail = self.save_image(
kurt.Costume("thumbnail", self.project.thumbnail))
thumbnail = self.save_image(kurt.Costume("thumbnail", (
self.project.thumbnail or kurt.Image.new((160, 120), (1, 1, 1))
))).form

self.info = {
'author': self.project.author,
'comment': self.project.notes.replace("\n", "\r"),
'thumbnail': thumbnail.form if thumbnail else None,
'thumbnail': thumbnail,
'history': '',
'language': 'en',
'os-version': '',
Expand Down

0 comments on commit be672f6

Please sign in to comment.