Costumes

We are having a problem with the Snap! Paint Editor. When we paint a picture and click "ok," it crops up on the right side of the image. When it is opened again, and clicked ok it crops more.

sorry you're encountering this issue. I'm investigating right now, hang on!
Can you perhaps share a project with such a cropped costume in it? That might give me some clues where to look. Tnx!

[edit] nvmd, I can reproduce it. This was introduced yesterday by an optimization supplied by @sarpnt, it seems. I'll revert that and patch it now. In a few minutes it'll be okay again. Sorry, hang on!

Take the pink square and make it yellow. - Thank you

link

Thank you for your help. My class will be back on track tomorrow.

I've just fixed this. If you reload Snap! again and use the paint editor to draw a new costume, it should be fine again, no cropping on the right side.

Sorry for disrupting your class with this bug today, and thank you so much for letting me know in time.

augh, one letter typo. i should have just used full words when i wrote it. did too much code golf i guess.

right crop starts at the costume height, not the costume width.
less important but the next line is formatted wrong.

if i knew you were about to merge it i would have looked over it again! i wouldn't trust any code i wrote nearly 2 years ago. i've been cleaning up similar bad code in my own projects too.

(i should clarify this is the obvious mistake, i didn't fully test it just now to make sure it works fine after fixing that and i'm not suggesting you put it back in yet)