Hello,

Thanks! This works. It is not quite yet what I want. For examples this writes 
3.500000 to a PDF if I have the double 3.5. In this case we do not need the 
appended zeros. 

Does anyone know to disable scientific mode for STL output streams but still 
write only a minimum of required figures?

Nontheless I commited your fix as it is better as the broken behaviour before. 
Our unit tests fail right now though because of the problem above.

best regards,
        Dom

Am Donnerstag, 7. August 2008 schrieb Pierre Marchand:
> As a quick workaround for output of floating point values (in SVN Head):
>
> Index: src/PdfVariant.cpp
> ===================================================================
> --- src/PdfVariant.cpp  (révision 887)
> +++ src/PdfVariant.cpp  (copie de travail)
> @@ -230,7 +230,7 @@
>              // Use ostringstream, so that locale does not matter
>              std::ostringstream oss;
>              PdfLocaleImbue(oss);
> -            oss << m_Data.dNumber;
> +           oss << std::fixed << m_Data.dNumber;
>
>              pDevice->Write( oss.str().c_str(), oss.str().size() );
>              break;
>
>
> I don’t know at all if it can be seen as a fix but at least it worked here
> (opensuse 10.3).



-- 
**********************************************************************
Dominik Seichter - [EMAIL PROTECTED]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to