r14793 by fschmid - Fixed Bug #8865: "PATCH ps import plugin does not register PS and PDF filetypes properly"
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 22 17:50:22 CET 2010
Revision: 14793
Author: fschmid
Date: 2010-02-22T16:45:10.305038Z
Commit message: Fixed Bug #8865: "PATCH ps import plugin does not register PS and PDF filetypes properly"
Changeset:
M /trunk/Scribus/scribus/plugins/import/ps/importpsplugin.cpp
Diffs:
Index: scribus/plugins/import/ps/importpsplugin.cpp
===================================================================
--- scribus/plugins/import/ps/importpsplugin.cpp (revision 14792)
+++ scribus/plugins/import/ps/importpsplugin.cpp (revision 14793)
@@ -107,7 +107,7 @@
fmt2.formatId = FORMATID_PSIMPORT;
fmt2.filter = FormatsManager::instance()->extensionsForFormat(FormatsManager::PS);// QFileDialog filter
fmt2.nameMatch = QRegExp("\\.("+FormatsManager::instance()->extensionListForFormat(FormatsManager::PS, 1)+")$", Qt::CaseInsensitive);
- fmt.fileExtensions = QStringList() << "ps";
+ fmt2.fileExtensions = QStringList() << "ps";
fmt2.load = true;
fmt2.save = false;
fmt2.mimeTypes = FormatsManager::instance()->mimetypeOfFormat(FormatsManager::PS); // MIME types
@@ -119,7 +119,7 @@
fmt3.formatId = FORMATID_PDFIMPORT;
fmt3.filter = FormatsManager::instance()->extensionsForFormat(FormatsManager::PDF);// QFileDialog filter
fmt3.nameMatch = QRegExp("\\."+FormatsManager::instance()->extensionListForFormat(FormatsManager::PDF, 1)+"$", Qt::CaseInsensitive);
- fmt.fileExtensions = QStringList() << "pdf";
+ fmt3.fileExtensions = QStringList() << "pdf";
fmt3.load = true;
fmt3.save = false;
fmt3.mimeTypes = FormatsManager::instance()->mimetypeOfFormat(FormatsManager::PDF); // MIME types
More information about the scribus-commit
mailing list