From 5af61841f446949c8bc544c3ee18b68d7b39cfd8 Mon Sep 17 00:00:00 2001 From: Cristy Date: Fri, 23 Dec 2016 21:26:14 -0500 Subject: [PATCH] ... --- Magick++/lib/Drawable.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.40.0