Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 19372 → Rev 19373

/trunk/Scribus/scribus/fileloader.cpp
126,8 → 126,8
bool found = false;
for (int a = 0; a < it->fileExtensions.count(); a++)
{
QString exts = it->fileExtensions[a];
if (ext.contains(exts, Qt::CaseInsensitive))
QString exts = it->fileExtensions[a].toLower();
if (ext == exts)
{
if (it->plug != 0)
{
/trunk/Scribus/scribus/scribusview.cpp
792,8 → 792,11
}
if (ext == "JPG")
ext = "JPEG";
QString formatD(FormatsManager::instance()->extensionListForFormat(FormatsManager::IMAGESIMGFRAME, 1).toUpper());
imfo += formatD.split("|");
img = imfo.contains(ext);
//CB Need to handle this ugly file extension list elsewhere... some capabilities class perhaps
img = ((imfo.contains(ext)) || extensionIndicatesPDF(ext) || extensionIndicatesEPSorPS(ext) || extensionIndicatesTIFF(ext) || extensionIndicatesJPEG(ext) || extensionIndicatesPSD(ext));
// img = ((imfo.contains(ext)) || extensionIndicatesPDF(ext) || extensionIndicatesEPSorPS(ext) || extensionIndicatesTIFF(ext) || extensionIndicatesJPEG(ext) || extensionIndicatesPSD(ext));
// int pscx=qRound(e->pos().x()/m_canvas->scale()), pscy=qRound(e->pos().y()/m_canvas->scale());
//Loop through all items and see which one(s) were under the drop point on the current layer
//Should make a nice function for this.