From: Johan Engelen Date: Wed, 24 Feb 2010 21:27:16 +0000 (+0100) Subject: fix bug: don't output scientific notation numbers to latex X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b40e4bca24c59d2fe4f94990ecad4b5f21e606d0;p=inkscape.git fix bug: don't output scientific notation numbers to latex --- diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp index 6a57f71e6..7e7e94801 100644 --- a/src/extension/internal/latex-text-renderer.cpp +++ b/src/extension/internal/latex-text-renderer.cpp @@ -293,6 +293,7 @@ LaTeXTextRenderer::sp_text_render(SPItem *item) // write to LaTeX Inkscape::SVGOStringStream os; + os.setf(std::ios::fixed); // don't use scientific notation os << " \\put(" << pos[Geom::X] << "," << pos[Geom::Y] << "){"; if (has_color) { @@ -319,6 +320,7 @@ LaTeXTextRenderer::sp_flowtext_render(SPItem *item) // write to LaTeX Inkscape::SVGOStringStream os; + os.setf(std::ios::fixed); // no scientific notation os << " \\begin{picture}(" << _width << "," << _height << ")%%\n"; os << " \\gplgaddtomacro\\gplbacktext{%%\n"; @@ -403,6 +405,7 @@ LaTeXTextRenderer::setupDocument(SPDocument *doc, bool pageBoundingBox, SPItem * // write the info to LaTeX Inkscape::SVGOStringStream os; + os.setf(std::ios::fixed); // no scientific notation // also write original width to LaTeX // TODO: add \ifdef statements to be able to choose between specifying width or not to specify it!