X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fui%2Fdialog%2Ffilter-effects-dialog.cpp;h=3fbb3663d86d27bbf1dfcbfd1c970b8a062e1d6a;hb=ef4a6bf28f7697d57173160803211fef5679309e;hp=ed7103be3c801a91fc4628d271e403d0e13c38b1;hpb=9dc68827cbd515262ecb8d5ae8547d9e82c72e00;p=inkscape.git diff --git a/src/ui/dialog/filter-effects-dialog.cpp b/src/ui/dialog/filter-effects-dialog.cpp index ed7103be3..3fbb3663d 100644 --- a/src/ui/dialog/filter-effects-dialog.cpp +++ b/src/ui/dialog/filter-effects-dialog.cpp @@ -58,6 +58,7 @@ #include "style.h" #include "svg/svg-color.h" +#include "svg/stringstream.h" #include "ui/dialog/filedialog.h" #include "verbs.h" #include "xml/node.h" @@ -304,6 +305,7 @@ public: // Returns the color in 'rgb(r,g,b)' form. Glib::ustring get_as_attribute() const { + // no doubles here, so we can use the standard string stream. std::ostringstream os; const Gdk::Color c = get_color(); const int r = c.get_red() / 257, g = c.get_green() / 257, b = c.get_blue() / 257;//TO-DO: verify this. This sounds a lot strange! shouldn't it be 256? @@ -371,7 +373,8 @@ public: Glib::ustring get_as_attribute() const { - std::ostringstream os; + // use SVGOStringStream to output SVG-compatible doubles + Inkscape::SVGOStringStream os; for(Gtk::TreeIter iter = _model->children().begin(); iter != _model->children().end(); ++iter) {