From f7355a98e452b54d37419a69bc3646222399ef95 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Sat, 12 Jul 2008 14:45:33 +0000 Subject: enable writing "H/h" and "V/v" to SVG ! (bzr r6273) --- src/svg/path-string.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/svg/path-string.cpp') diff --git a/src/svg/path-string.cpp b/src/svg/path-string.cpp index 39d66d74e..68fcb26d8 100644 --- a/src/svg/path-string.cpp +++ b/src/svg/path-string.cpp @@ -84,6 +84,11 @@ void Inkscape::SVG::PathString::State::append(NR::Point p, NR::Point &rp) { appendCoord(str, p[NR::Y], rp[NR::Y]); } +void Inkscape::SVG::PathString::State::append(NR::Coord v, NR::Coord& rv) { + str += ' '; + appendCoord(str, v, rv); +} + // NOTE: The following two appendRelative methods will not be exact if the total number of digits needed // to represent the difference exceeds the precision of a double. This is not very likely though, and if // it does happen the imprecise value is not likely to be chosen (because it will probably be a lot longer @@ -138,6 +143,11 @@ void Inkscape::SVG::PathString::State::appendRelative(NR::Point p, NR::Point r) appendRelativeCoord(str, p[NR::Y], r[NR::Y]); } +void Inkscape::SVG::PathString::State::appendRelative(NR::Coord v, NR::Coord r) { + str += ' '; + appendRelativeCoord(str, v, r); +} + /* Local Variables: mode:c++ -- cgit v1.2.3