r18010 by fschmid - Fixed Bug #11309: Preview of PS/EPS vector files in file selectors shouldn't display image resolution

scribus-commit scribus-commit at lists.scribus.net
Sun Dec 30 12:51:34 UTC 2012


Author: fschmid
Date: Sun Dec 30 12:51:34 2012
New Revision: 18010

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18010
Log:
Fixed Bug #11309: Preview of PS/EPS vector files in file selectors shouldn't display image resolution

Modified:
    trunk/Scribus/scribus/ui/customfdialog.cpp

Modified: trunk/Scribus/scribus/ui/customfdialog.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18010&path=/trunk/Scribus/scribus/ui/customfdialog.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/customfdialog.cpp (original)
+++ trunk/Scribus/scribus/ui/customfdialog.cpp Sun Dec 30 12:51:34 2012
@@ -185,7 +185,8 @@
 			p.fillRect(0, h-44, w, 44, QColor(255, 255, 255));
 			p.drawImage((w - im2.width()) / 2, (h - 44 - im2.height()) / 2, im2);
 			p.drawText(2, h-29, tr("Size:")+" "+tmp.setNum(ix)+" x "+tmp2.setNum(iy));
-			p.drawText(2, h-17, tr("Resolution:")+" "+tmp.setNum(xres)+" x "+tmp2.setNum(yres)+" "+ tr("DPI"));
+			if (!(extensionIndicatesPDF(ext) || extensionIndicatesEPSorPS(ext)))
+				p.drawText(2, h-17, tr("Resolution:")+" "+tmp.setNum(xres)+" x "+tmp2.setNum(yres)+" "+ tr("DPI"));
 			QString cSpace;
 			if ((extensionIndicatesPDF(ext) || extensionIndicatesEPSorPS(ext)) && (im.imgInfo.type != ImageType7))
 				cSpace = tr("Unknown");




More information about the scribus-commit mailing list