Code

patch from bug 1474575
authorbuliabyak <buliabyak@users.sourceforge.net>
Sat, 27 May 2006 16:37:55 +0000 (16:37 +0000)
committerbuliabyak <buliabyak@users.sourceforge.net>
Sat, 27 May 2006 16:37:55 +0000 (16:37 +0000)
src/extension/internal/latex-pstricks.cpp

index 3c3cf6682dc25ce1f5288ac848810f44f568e888..f33a0d2b8775c9d329e9571d67c0b5c6277e3761 100644 (file)
@@ -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";