Initialise the tangents when constructing a BLinePoint.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 2 Mar 2007 23:15:38 +0000 (23:15 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 2 Mar 2007 23:15:38 +0000 (23:15 +0000)
git-svn-id: http://svn.voria.com/code@261 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/blinepoint.h

index c97c79f..66904b4 100644 (file)
@@ -55,7 +55,7 @@ public:
                width_(0.01),
                origin_(0.0),
                split_tangent_(false)
-       { }
+       { tangent_[0] = Point(0,0); tangent_[1] = Point(0,0); }
 
        const Point& get_vertex()const { return vertex_; }
        void set_vertex(const Point& x) { vertex_=x; }