From: Dirk Lemstra Date: Sun, 3 Sep 2017 17:02:28 +0000 (+0200) Subject: Rename of argument X-Git-Tag: 7.0.7-1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1fe92cfd63c218e410af42c24fadbe5d7b6acdd8;p=imagemagick Rename of argument --- diff --git a/Magick++/lib/Image.cpp b/Magick++/lib/Image.cpp index 999d4fbee..d34727734 100644 --- a/Magick++/lib/Image.cpp +++ b/Magick++/lib/Image.cpp @@ -302,7 +302,7 @@ bool Magick::Image::adjoin(void) const return(constOptions()->adjoin()); } -void Magick::Image::alpha(const bool matteFlag_) +void Magick::Image::alpha(const bool alphaFlag_) { modifyImage(); @@ -311,12 +311,12 @@ void Magick::Image::alpha(const bool matteFlag_) // the image already has a matte channel but a matte channel is not // desired, then set the matte channel to opaque. GetPPException; - if ((matteFlag_ && !constImage()->alpha_trait) || - (constImage()->alpha_trait && !matteFlag_)) + if ((alphaFlag_ && !constImage()->alpha_trait) || + (constImage()->alpha_trait && !alphaFlag_)) SetImageAlpha(image(),OpaqueAlpha,exceptionInfo); ThrowImageException; - image()->alpha_trait=matteFlag_ ? BlendPixelTrait : UndefinedPixelTrait; + image()->alpha_trait=alphaFlag_ ? BlendPixelTrait : UndefinedPixelTrait; } bool Magick::Image::alpha(void) const