# HG changeset patch # User Roeland Merks # Date 2010-11-29 17:21:54 # Node ID 3809c04020b409cec3d0af5cf676de5d9ee16264 # Parent 8509673ac23b932ed9c8682e4bdcc0cf0e423c69 Note: I only fixed the PDF problem. Not the other issues. diff --git a/src/mainbase.cpp b/src/mainbase.cpp --- a/src/mainbase.cpp +++ b/src/mainbase.cpp @@ -330,6 +330,7 @@ int MainBase::Save(const char *fname, co return 1; } + ll*=Cell::Magnification(); ur*=Cell::Magnification(); // give the leaf some space @@ -357,7 +358,7 @@ int MainBase::Save(const char *fname, co pdf.setOutputFileName(fname); pdf.setOutputFormat(QPrinter::PdfFormat); QPainter painter(&pdf); - canvas.render(&painter, QRectF(), QRectF(-5000,-5000, 10000, 10000)); + canvas.render(&painter, QRectF(), QRectF(-500,-500, 1000, 1000)); // NB Fiddle with these arguments if relative size of PDF images is important. cerr << "Rendering to printer\n"; }