r13989 by fschmid - WPG-Import: Better filename for temporary files.

scribus-commit scribus-commit at lists.scribus.net
Tue Sep 15 13:45:16 CEST 2009


Revision: 13989
Author: fschmid
Date: 2009-09-15T11:42:40.907162Z
Commit message: WPG-Import: Better filename for temporary files.

Changeset: 
M  /trunk/Scribus/scribus/plugins/wpgimplugin/importwpg.cpp

Diffs:
Index: scribus/plugins/wpgimplugin/importwpg.cpp
===================================================================
--- scribus/plugins/wpgimplugin/importwpg.cpp	(revision 13988)
+++ scribus/plugins/wpgimplugin/importwpg.cpp	(revision 13989)
@@ -443,7 +443,7 @@
 	double h = (bitmap.rect.y2 - bitmap.rect.y1) * 72.0;
 	int z = m_Doc->itemAdd(PageItem::ImageFrame, PageItem::Unspecified, bitmap.rect.x1 * 72 + baseX, bitmap.rect.y1 * 72 + baseY, w, h, 1, m_Doc->itemToolPrefs.dBrushPict, CommonStrings::None, true);
 	PageItem *ite = m_Doc->Items->at(z);
-	ite->tempImageFile = new QTemporaryFile(QDir::tempPath() + "/scribus_temp_svg_XXXXXX.png");
+	ite->tempImageFile = new QTemporaryFile(QDir::tempPath() + "/scribus_temp_wpg_XXXXXX.png");
 	ite->tempImageFile->open();
 	QString fileName = getLongPathName(ite->tempImageFile->fileName());
 	ite->tempImageFile->close();




More information about the scribus-commit mailing list