index 3a7bd71adf98aefeaf00ea46b6ab07bdf23e63ca..47956031f55fcbaa6670f2de86b78da9f9f63b4a 100644 (file)
#include <2geom/sbasis-to-bezier.h>
#include <2geom/curves.h>
#include "../display/canvas-bpath.h"
+#include "helper/geom-curves.h"
void Path::DashPolyline(float head,float tail,float body,int nbD,float *dashs,bool stPlain,float stOffset)
{
void Path::AddCurve(Geom::Curve const &c)
{
- if( dynamic_cast<Geom::LineSegment const*>(&c) ||
- dynamic_cast<Geom::HLineSegment const*>(&c) ||
- dynamic_cast<Geom::VLineSegment const*>(&c) )
+ if( is_straight_curve(c) )
{
LineTo( from_2geom(c.finalPoint()) );
}