r14111 by fschmid - Fixed Bug #8495: "Save as PDF maximum image resolution, 300dpi != 400dpi "

scribus-commit scribus-commit at lists.scribus.net
Wed Oct 7 19:55:21 CEST 2009


Revision: 14111
Author: fschmid
Date: 2009-10-07T17:32:03.741580Z
Commit message: Fixed Bug #8495: "Save as PDF maximum image resolution, 300dpi != 400dpi "

Changeset: 
M  /branches/Version135/Scribus/scribus/pdflib_core.cpp
M  /branches/Version135/Scribus/scribus/tabpdfoptions.cpp

Diffs:
Index: scribus/pdflib_core.cpp
===================================================================
--- scribus/pdflib_core.cpp	(revision 14110)
+++ scribus/pdflib_core.cpp	(revision 14111)
@@ -6652,7 +6652,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;
@@ -6822,7 +6825,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/tabpdfoptions.cpp
===================================================================
--- scribus/tabpdfoptions.cpp	(revision 14110)
+++ scribus/tabpdfoptions.cpp	(revision 14111)
@@ -1941,8 +1941,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