r14112 by fschmid - Fixed Bug #8495: "Save as PDF maximum image resolution, 300dpi != 400dpi "
scribus-commit
scribus-commit at lists.scribus.net
Wed Oct 7 20:00:17 CEST 2009
Revision: 14112
Author: fschmid
Date: 2009-10-07T17:34:34.641903Z
Commit message: Fixed Bug #8495: "Save as PDF maximum image resolution, 300dpi != 400dpi "
Changeset:
M /trunk/Scribus/scribus/pdflib_core.cpp
M /trunk/Scribus/scribus/ui/tabpdfoptions.cpp
Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp (revision 14111)
+++ scribus/pdflib_core.cpp (revision 14112)
@@ -6914,7 +6914,10 @@
ImInfo.ResNum = 0;
ImInfo.sxa = 0;
ImInfo.sya = 0;
- ImInfo.reso = Options.Resolution / 72.0;
+ if (Options.RecalcPic)
+ ImInfo.reso = Options.PicRes / 72.0;
+ else
+ ImInfo.reso = Options.Resolution / 72.0;
ImInfo.Width = 0;
ImInfo.Height = 0;
ImInfo.Page = 0;
@@ -7084,7 +7087,7 @@
}
if ((Options.RecalcPic) && (Options.PicRes < (qMax(72.0 / c->imageXScale(), 72.0 / c->imageYScale()))))
{
- double afl = qMin(Options.PicRes, Options.Resolution);
+ double afl = Options.PicRes;
a2 = (72.0 / sx) / afl;
a1 = (72.0 / sy) / afl;
origWidth = img.width();
Index: scribus/ui/tabpdfoptions.cpp
===================================================================
--- scribus/ui/tabpdfoptions.cpp (revision 14111)
+++ scribus/ui/tabpdfoptions.cpp (revision 14112)
@@ -1973,8 +1973,8 @@
ValC->setEnabled(true);
if (ValC->value() > Resolution->value())
ValC->setValue(Resolution->value());
- ValC->setMaximum(Resolution->value());
- ValC->setMinimum(35);
+// ValC->setMaximum(Resolution->value());
+// ValC->setMinimum(35);
}
else
ValC->setEnabled(false);
More information about the scribus-commit
mailing list