From: buliabyak Date: Sat, 27 May 2006 16:37:55 +0000 (+0000) Subject: patch from bug 1474575 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=99f96b14d7a82fdc70e3a8c1ee83360d61c8f177;p=inkscape.git patch from bug 1474575 --- diff --git a/src/extension/internal/latex-pstricks.cpp b/src/extension/internal/latex-pstricks.cpp index 3c3cf6682..f33a0d2b8 100644 --- a/src/extension/internal/latex-pstricks.cpp +++ b/src/extension/internal/latex-pstricks.cpp @@ -67,6 +67,8 @@ PrintLatex::begin (Inkscape::Extension::Print *mod, SPDocument *doc) FILE *osf, *osp; const gchar * fn; + os.setf(std::ios::fixed); + fn = mod->get_param_string("destination"); osf = NULL; @@ -214,6 +216,8 @@ PrintLatex::fill(Inkscape::Extension::Print *mod, Inkscape::SVGOStringStream os; float rgb[3]; + os.setf(std::ios::fixed); + sp_color_get_rgb_floatv(&style->fill.value.color, rgb); os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[2] << "}\n"; @@ -239,6 +243,8 @@ PrintLatex::stroke (Inkscape::Extension::Print *mod, const NRBPath *bpath, const Inkscape::SVGOStringStream os; float rgb[3]; + os.setf(std::ios::fixed); + sp_color_get_rgb_floatv(&style->stroke.value.color, rgb); os << "{\n\\newrgbcolor{curcolor}{" << rgb[0] << " " << rgb[1] << " " << rgb[2] << "}\n";