summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2010-02-24 21:27:16 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2010-02-24 21:27:16 +0000
commita29676e2e739e0b508c3eabbf6bf40b61a70dc38 (patch)
tree40024a49400b976373c137ef25439950e132bacc /src
parentadd original width of picture to be able to *not* specify width in latex doc.... (diff)
downloadinkscape-a29676e2e739e0b508c3eabbf6bf40b61a70dc38.tar.gz
inkscape-a29676e2e739e0b508c3eabbf6bf40b61a70dc38.zip
fix bug: don't output scientific notation numbers to latex
(bzr r9101.1.19)
Diffstat (limited to 'src')
-rw-r--r--src/extension/internal/latex-text-renderer.cpp3
1 files changed, 3 insertions, 0 deletions
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!