Deleting all the verticies from a Curve Gradient used to cause a crash. This stops...
[synfig.git] / synfig-core / trunk / src / modules / mod_gradient / curvegradient.cpp
index 8013b7d..b98caa6 100644 (file)
@@ -77,6 +77,8 @@ inline float calculate_distance(const std::vector<synfig::BLinePoint>& bline)
 
        float dist(0);
 
+       if (bline.empty()) return dist;
+
        next=bline.begin();
 
        //if(loop)