projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ignore generated files, such as PNG files.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
gradient.cpp
diff --git
a/synfig-core/trunk/src/synfig/gradient.cpp
b/synfig-core/trunk/src/synfig/gradient.cpp
index
510eb72
..
d11cb1e
100644
(file)
--- 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<end();iter=next++)
{
//! using a binary search.
for(;iter<end();iter=next++)
{
- if(next==end() ||
x>=iter->pos && x<next->pos && iter->pos!=next->pos
)
+ if(next==end() ||
(x>=iter->pos && x<next->pos && iter->pos!=next->pos)
)
{
// If the supersample region falls square in between
// two CPoints, then we don't have to do anything special.
{
// If the supersample region falls square in between
// two CPoints, then we don't have to do anything special.