[poppler] Branch 'poppler-0.12' - poppler/PDFDoc.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Sep 21 12:59:01 PDT 2009


 poppler/PDFDoc.cc |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 5e9d056f184c4637cb1dc949a17e5ad4ddd3ade5
Author: Albert Astals Cid <aacid at kde.org>
Date:   Mon Sep 21 21:58:26 2009 +0200

    Print with a . and not with a , in all locales
    
    This is a regression after the removal of setting LC_NUMERIC

diff --git a/poppler/PDFDoc.cc b/poppler/PDFDoc.cc
index 435ad10..b61a8e4 100644
--- a/poppler/PDFDoc.cc
+++ b/poppler/PDFDoc.cc
@@ -713,8 +713,12 @@ Guint PDFDoc::writeObject (Object* obj, Ref* ref, OutStream* outStr)
       outStr->printf("%i ", obj->getInt());
       break;
     case objReal:
-      outStr->printf("%g ", obj->getReal());
+    {
+      GooString s;
+      s.appendf("{0:.5g}", obj->getReal());
+      outStr->printf("%s ", s.getCString());
       break;
+    }
     case objString:
       writeString(obj->getString(), outStr);
       break;


More information about the poppler mailing list