summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: adac656)
raw | patch | inline | side by side (parent: adac656)
author | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 24 Feb 2010 21:27:16 +0000 (22:27 +0100) | ||
committer | Johan Engelen <goejendaagh@zonnet.nl> | |
Wed, 24 Feb 2010 21:27:16 +0000 (22:27 +0100) |
src/extension/internal/latex-text-renderer.cpp | patch | blob | history |
diff --git a/src/extension/internal/latex-text-renderer.cpp b/src/extension/internal/latex-text-renderer.cpp
index 6a57f71e66ed8b6b64e09befbf031b5f6f6369b2..7e7e9480186a240d2089c9eb620d8b0ee7361915 100644 (file)
// 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) {
// 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!