diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-12 14:45:33 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-12 14:45:33 +0000 |
| commit | f7355a98e452b54d37419a69bc3646222399ef95 (patch) | |
| tree | 4fdd4863e820abe13aba63209fb973c27188fe88 /src/svg/path-string.cpp | |
| parent | Don't crash on path parse error. Truncate the path data up to where it is valid. (diff) | |
| download | inkscape-f7355a98e452b54d37419a69bc3646222399ef95.tar.gz inkscape-f7355a98e452b54d37419a69bc3646222399ef95.zip | |
enable writing "H/h" and "V/v" to SVG !
(bzr r6273)
Diffstat (limited to 'src/svg/path-string.cpp')
| -rw-r--r-- | src/svg/path-string.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
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++ |
