]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authoranthony <anthony@git.imagemagick.org>
Sun, 23 Oct 2011 07:41:00 +0000 (07:41 +0000)
committeranthony <anthony@git.imagemagick.org>
Sun, 23 Oct 2011 07:41:00 +0000 (07:41 +0000)
MagickCore/composite.c

index 608841987bc72842325d57ab01a2aaf4fc4af812..d64ef98caa6d600c21dcafd5b9a55eca5ad12561 100644 (file)
@@ -680,7 +680,7 @@ static inline void CompositeIn(const PixelInfo *p,const PixelInfo *q,
     composite->black=gamma*In(p->black,Sa,q->black,Da);
 #else
   /* Simplified to a multiply of the Alpha Channel */
-  composite=p;
+  *composite=*p; /* structure copy */
   composite->alpha=QuantumScale*p->alpha*q->alpha;
 #endif
 }
@@ -1205,7 +1205,7 @@ static inline void CompositeOut(const PixelInfo *p,const PixelInfo *q,
     composite->black=gamma*Out(p->black,Sa,q->black,Da);
 #else
   /* Simplified to a negated multiply of the Alpha Channel */
-  composite=p;
+  *composite=*p; /* structure copy */
   composite->alpha=p->alpha*(1.0-QuantumScale*q->alpha);
 #endif
 }