From ee0fd97e97433501befb38b88478ab4eb7487ff5 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 25 Jan 2008 12:29:39 +0000 Subject: [PATCH] Avoid a warning from g++ 4.3. git-svn-id: http://svn.voria.com/code@1463 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/gradient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/gradient.cpp b/synfig-core/trunk/src/synfig/gradient.cpp index 510eb72..d11cb1e 100644 --- a/synfig-core/trunk/src/synfig/gradient.cpp +++ b/synfig-core/trunk/src/synfig/gradient.cpp @@ -405,7 +405,7 @@ synfig::Gradient::operator()(const Real &x,float supersample)const //! using a binary search. for(;iter=iter->pos && xpos && iter->pos!=next->pos) + if(next==end() || (x>=iter->pos && xpos && iter->pos!=next->pos)) { // If the supersample region falls square in between // two CPoints, then we don't have to do anything special. -- 2.7.4