r17247 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:12 UTC 2012
Author: jghali
Date: Fri Jan 27 23:14:12 2012
New Revision: 17247
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=17247
Log:
#10546: when a pdf file can't be imported into an image frame, "info" reports "file not found"
Modified:
branches/Version14x/Scribus/scribus/pageitem_imageframe.cpp
Modified: branches/Version14x/Scribus/scribus/pageitem_imageframe.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=17247&path=/branches/Version14x/Scribus/scribus/pageitem_imageframe.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/pageitem_imageframe.cpp (original)
+++ branches/Version14x/Scribus/scribus/pageitem_imageframe.cpp Fri Jan 27 23:14:12 2012
@@ -352,6 +352,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 );
@@ -513,6 +515,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