[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1527
Date : Tue Jul 25 14:41:52 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/bmpexprw.cpp
Enable preview of IM export filtered images (WARNING very slow)
Diff:
Index: Trunk/XaraLX/Kernel/bmpexprw.cpp
===================================================================
--- Trunk/XaraLX/Kernel/bmpexprw.cpp (revision 1526)
+++ Trunk/XaraLX/Kernel/bmpexprw.cpp (revision 1527)
@@ -117,6 +117,7 @@
//#include "app.h" // for Document - in camtypes.h [AUTOMATICALLY REMOVED]
#include "giffiltr.h" // for TI_GIFFilter
#include "exjpeg.h" // for JPEGExportFilter
+#include "imgmgkft.h" // for ImageMagickFilter
#include "progress.h"
#include "sgliboil.h"
#include "backgrnd.h"
@@ -2690,6 +2691,9 @@
// create a temp file
PathName TempPath = FileUtil::GetTemporaryPathName();
+ if( m_pBmpFilter->IS_KIND_OF( ImageMagickFilter ) )
+ TempPath.SetType( ((ImageMagickFilter*)m_pBmpFilter)->GetExtension() );
+
// Set flag telling exporter that we are NOT exporting a temporary file!
pOptions->SetTempFileFlag(TRUE);
Xara