summaryrefslogtreecommitdiffstats
path: root/src/svg/path-string.cpp
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2009-11-29 19:01:07 +0000
committerTed Gould <ted@gould.cx>2009-11-29 19:01:07 +0000
commit29d3c0b15028e61f176df3a75189bf0959d0d03e (patch)
tree727afe596c693a9bdd098d72618abd9ceb0d1969 /src/svg/path-string.cpp
parentAdd the build dir dbus directory to grab some headerfiles for distcheck. (diff)
parenthopefully fix build on linux (diff)
downloadinkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.tar.gz
inkscape-29d3c0b15028e61f176df3a75189bf0959d0d03e.zip
Merging in from trunk
(bzr r8254.1.37)
Diffstat (limited to 'src/svg/path-string.cpp')
-rw-r--r--src/svg/path-string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svg/path-string.cpp b/src/svg/path-string.cpp
index 0baaf521e..a850d7c10 100644
--- a/src/svg/path-string.cpp
+++ b/src/svg/path-string.cpp
@@ -129,7 +129,7 @@ void Inkscape::SVG::PathString::State::appendNumber(double v, int precision, int
size_t const oldsize = str.size();
str.append(reserve, (char)0);
char* begin_of_num = const_cast<char*>(str.data()+oldsize); // Slightly evil, I know (but std::string should be storing its data in one big block of memory, so...)
- size_t added = sp_svg_number_write_de(begin_of_num, v, precision, minexp);
+ size_t added = sp_svg_number_write_de(begin_of_num, reserve, v, precision, minexp);
str.resize(oldsize+added); // remove any trailing characters
}