X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_bezier.h;h=4851a98419a329dcbddde766179261e1b8d01db7;hb=bd4b3d17e246ddb8c76b8aa30367b26bddee3bc1;hp=70dfe99d82d13e6f00e5d1aa010b02dbdc4010b1;hpb=bea2b75edf4c73c23938abc4f1aa8952c41d6847;p=synfig.git diff --git a/ETL/trunk/ETL/_bezier.h b/ETL/trunk/ETL/_bezier.h index 70dfe99..4851a98 100644 --- a/ETL/trunk/ETL/_bezier.h +++ b/ETL/trunk/ETL/_bezier.h @@ -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));