diff -r 56cd8111b7f7 -r 41300fa6a67c src/gui/painting/qpdf.cpp --- a/src/gui/painting/qpdf.cpp Tue Jan 26 12:42:25 2010 +0200 +++ b/src/gui/painting/qpdf.cpp Tue Feb 02 00:43:10 2010 +0200 @@ -78,8 +78,8 @@ unsigned int ival = (unsigned int) val; qreal frac = val - (qreal)ival; - int ifrac = (int)(frac * 1000000); - if (ifrac == 1000000) { + int ifrac = (int)(frac * 1000000000); + if (ifrac == 1000000000) { ++ival; ifrac = 0; } @@ -90,7 +90,7 @@ ++i; ival /= 10; } - int fact = 100000; + int fact = 100000000; if (i == 0) { *(buf++) = '0'; } else { @@ -145,7 +145,7 @@ fileBackingActive(false), handleDirty(false) { - dev->open(QIODevice::ReadWrite); + dev->open(QIODevice::ReadWrite | QIODevice::Append); } ByteStream::ByteStream(bool fileBacking)