Code

add commented HLineSegment and VLineSegment to svg writer
authorjohanengelen <johanengelen@users.sourceforge.net>
Sun, 29 Jun 2008 11:31:37 +0000 (11:31 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Sun, 29 Jun 2008 11:31:37 +0000 (11:31 +0000)
src/svg/svg-path.cpp

index 353bb1da34351f1684c857bf81330984b5244870..9c305eebe66b9f695f6c1c6c0b47f3ae644f4b8f 100644 (file)
@@ -753,6 +753,11 @@ static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve cons
                    svg_elliptical_arc->rotation_angle(),
                    svg_elliptical_arc->large_arc_flag(), svg_elliptical_arc->sweep_flag(),
                    svg_elliptical_arc->finalPoint() );
+/*    else if(Geom::HLineSegment const *hline_segment = dynamic_cast<Geom::HLineSegment const  *>(c)) {
+        str.horizontalLineTo( ... );
+    }
+    else if(Geom::VLineSegment const *vline_segment = dynamic_cast<Geom::VLineSegment const  *>(c)) {
+        str.verticalLineTo( ... ); */
     } else { 
         //this case handles sbasis as well as all other curve types
         Geom::Path sbasis_path = Geom::path_from_sbasis(c->toSBasis(), 0.1);