projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an 'auto-export' checkbox and an auto-incrementing text entry box to the draw...
[synfig.git]
/
ETL
/
trunk
/
ETL
/
_bezier.h
diff --git
a/ETL/trunk/ETL/_bezier.h
b/ETL/trunk/ETL/_bezier.h
index
7e26796
..
0e3ace9
100644
(file)
--- a/
ETL/trunk/ETL/_bezier.h
+++ b/
ETL/trunk/ETL/_bezier.h
@@
-551,7
+551,8
@@
public:
bezier<V,T>::operator[](1),
bezier<V,T>::operator[](2),
bezier<V,T>::operator[](3)};
bezier<V,T>::operator[](1),
bezier<V,T>::operator[](2),
bezier<V,T>::operator[](3)};
- return NearestPointOnCurve(x, array);
+ float t = NearestPointOnCurve(x, array);
+ return t > 0.999999 ? 0.999999 : t < 0.000001 ? 0.000001 : t;
}
else
{
}
else
{