diff options
Diffstat (limited to 'src/2geom/svg-path-parser.h')
| -rw-r--r-- | src/2geom/svg-path-parser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/2geom/svg-path-parser.h b/src/2geom/svg-path-parser.h index 365287d8c..163fbe5c4 100644 --- a/src/2geom/svg-path-parser.h +++ b/src/2geom/svg-path-parser.h @@ -38,11 +38,11 @@ #include <stdexcept> #include <2geom/exception.h> #include <2geom/point.h> -#include <2geom/svg-path.h> +#include <2geom/path-sink.h> namespace Geom { -void parse_svg_path(char const *str, SVGPathSink &sink) throw(SVGPathParseError); +void parse_svg_path(char const *str, PathSink &sink) throw(SVGPathParseError); inline std::vector<Path> parse_svg_path(char const *str) throw(SVGPathParseError) { typedef std::vector<Path> Subpaths; @@ -50,13 +50,14 @@ inline std::vector<Path> parse_svg_path(char const *str) throw(SVGPathParseError Subpaths subpaths; Inserter iter(subpaths); - SVGPathGenerator<Inserter> generator(iter); + PathIteratorSink<Inserter> generator(iter); parse_svg_path(str, generator); return subpaths; } inline std::vector<Path> read_svgd_f(FILE * fi) throw(SVGPathParseError) { + /// @bug The 10kB length limit should be removed char input[1024 * 10]; fgets(input, 1024 * 10, fi); return parse_svg_path(input); |
