X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_bezier.h;h=fe6b17017f1e89b13a62f40efbc9f3ed67322d58;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=70dfe99d82d13e6f00e5d1aa010b02dbdc4010b1;hpb=84c70c6bcf5ae25cfff0c17349914f16ede14835;p=synfig.git diff --git a/ETL/trunk/ETL/_bezier.h b/ETL/trunk/ETL/_bezier.h index 70dfe99..fe6b170 100644 --- a/ETL/trunk/ETL/_bezier.h +++ b/ETL/trunk/ETL/_bezier.h @@ -25,8 +25,8 @@ /* === S T A R T =========================================================== */ -#ifndef __ETL_BEZIER_H -#define __ETL_BEZIER_H +#ifndef __ETL__BEZIER_H +#define __ETL__BEZIER_H /* === H E A D E R S ======================================================= */ @@ -577,6 +577,7 @@ public: distance_type find_distance(time_type r, time_type s, int steps=7)const { const time_type inc((s-r)/steps); + if (!inc) return 0; distance_type ret(0); value_type last(operator()(r));