From e5ebfcb6b958b6c12d5e0fb035a35ff2b2edf5a7 Mon Sep 17 00:00:00 2001 From: Robby Findler Date: Fri, 14 Nov 2008 14:53:20 +0000 Subject: [PATCH] fixed a bug in copy/paste of images that have a zero dimension svn: r12448 original commit: 00abb80504d5c5c6839a6240e4969fd18d66fbad --- collects/mrlib/cache-image-snip.ss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collects/mrlib/cache-image-snip.ss b/collects/mrlib/cache-image-snip.ss index 836c2ec3..124561cf 100644 --- a/collects/mrlib/cache-image-snip.ss +++ b/collects/mrlib/cache-image-snip.ss @@ -269,7 +269,7 @@ [height (argb-height argb)] [argb-vector (argb-vector argb)] [bitmap (argb->bitmap argb)] - [mask (send bitmap get-loaded-mask)]) + [mask (and bitmap (send bitmap get-loaded-mask))]) (new cache-image-snip% (width width) (height height)