r17248 by jghali - #10546: when a pdf file can't be imported into an image frame, "info" reports "file not found"

scribus-commit scribus-commit at lists.scribus.net
Fri Jan 27 23:14:42 UTC 2012


Author: jghali
Date: Fri Jan 27 23:14:42 2012
New Revision: 17248

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17248
Log:
#10546: when a pdf file can't be imported into an image frame, "info" reports "file not found"

Modified:
    trunk/Scribus/scribus/pageitem_imageframe.cpp

Modified: trunk/Scribus/scribus/pageitem_imageframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17248&path=/trunk/Scribus/scribus/pageitem_imageframe.cpp
==============================================================================
--- trunk/Scribus/scribus/pageitem_imageframe.cpp (original)
+++ trunk/Scribus/scribus/pageitem_imageframe.cpp Fri Jan 27 23:14:42 2012
@@ -408,6 +408,8 @@
 			fileT = new QLabel(infoGroup);
 			if (isInlineImage)
 				fileT->setText( tr("Embedded Image missing"));
+			else if (extensionIndicatesPDF(fi.suffix().toLower()))
+				fileT->setText(fi.fileName() + " " + tr("missing or corrupt"));
 			else
 				fileT->setText(fi.fileName() + " " + tr("missing"));
 			infoGroupLayout->addWidget( fileT, 1, 1 );
@@ -495,6 +497,8 @@
 			QFileInfo fi = QFileInfo(Pfile);
 			if (isInlineImage)
 				htmlText.append( tr("Embedded Image missing") + "<br/>");
+			else if (extensionIndicatesPDF(fi.suffix().toLower()))
+				htmlText.append( tr("File:") + " " + fi.fileName() + " " + tr("missing or corrupt") + "<br/>");
 			else
 				htmlText.append( tr("File:") + " " + fi.fileName() + " " + tr("missing") + "<br/>");
 		}




More information about the scribus-commit mailing list