From: Cristy Date: Sat, 24 Dec 2016 02:26:14 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-1~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5af61841f446949c8bc544c3ee18b68d7b39cfd8;p=imagemagick ... --- diff --git a/Magick++/lib/Drawable.cpp b/Magick++/lib/Drawable.cpp index e1d472680..fa10ac0d0 100644 --- a/Magick++/lib/Drawable.cpp +++ b/Magick++/lib/Drawable.cpp @@ -2063,8 +2063,9 @@ void Magick::PathSmoothCurvetoAbs::operator() double x2 = p->x(); double y2 = p->y(); p++; - if(p != _coordinates.end() ) - DrawPathCurveToSmoothAbsolute( context_, x2, y2, p->x(), p->y() ); + if (p == _coordinates.end() ) + break; + DrawPathCurveToSmoothAbsolute( context_, x2, y2, p->x(), p->y() ); } } Magick::VPathBase* Magick::PathSmoothCurvetoAbs::copy() const @@ -2099,8 +2100,9 @@ void Magick::PathSmoothCurvetoRel::operator() double x2 = p->x(); double y2 = p->y(); p++; - if(p != _coordinates.end() ) - DrawPathCurveToSmoothRelative( context_, x2, y2, p->x(), p->y() ); + if (p == _coordinates.end() ) + break; + DrawPathCurveToSmoothRelative( context_, x2, y2, p->x(), p->y() ); } } Magick::VPathBase* Magick::PathSmoothCurvetoRel::copy() const