diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2010-05-27 19:41:41 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2010-05-27 19:41:41 +0000 |
| commit | f6bd903f2b41f36bb6112d099f36e31696536ba7 (patch) | |
| tree | ee675c5ba0c7b4d19d203a20563ea42525ac54c0 /src/extension/internal/grid.cpp | |
| parent | a web banner collection template (diff) | |
| download | inkscape-f6bd903f2b41f36bb6112d099f36e31696536ba7.tar.gz inkscape-f6bd903f2b41f36bb6112d099f36e31696536ba7.zip | |
Extensions. Localized float values in SVG due to internal extensions, %f in printf (bug #586063)
Fixed bugs:
- https://launchpad.net/bugs/586063
(bzr r9456)
Diffstat (limited to 'src/extension/internal/grid.cpp')
| -rw-r--r-- | src/extension/internal/grid.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/extension/internal/grid.cpp b/src/extension/internal/grid.cpp index 39bca52d8..1593ffe79 100644 --- a/src/extension/internal/grid.cpp +++ b/src/extension/internal/grid.cpp @@ -120,7 +120,9 @@ Grid::effect (Inkscape::Extension::Effect *module, Inkscape::UI::View::View *doc Glib::ustring style("fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1.0000000"); style += ";stroke-width:"; gchar floatstring[64]; - sprintf(floatstring, "%f", line_width); + std::ostringstream stringstream; + stringstream << line_width; + sprintf(floatstring, "%s", stringstream.str().c_str()); style += floatstring; style += "pt"; path->setAttribute("style", style.c_str()); |
