[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]
[XaraXtreme-commits] Commit Complete
Commit by : luke
Repository : xara
Revision : 1573
Date : Thu Jul 27 16:45:38 BST 2006
Changed paths:
M /Trunk/XaraLX/Kernel/bmpexprw.cpp
Add a call to SetImportDPI in preview dialog, text now looks right
Diff:
Index: Trunk/XaraLX/Kernel/bmpexprw.cpp
===================================================================
--- Trunk/XaraLX/Kernel/bmpexprw.cpp (revision 1572)
+++ Trunk/XaraLX/Kernel/bmpexprw.cpp (revision 1573)
@@ -2829,6 +2829,11 @@
// import the file
if (pImportFilter != NULL)
{
+ // Setup import DPI from export options (this means we get the same resolution bitmap from
+ // a PDF.
+ if( pImportFilter->IS_KIND_OF( ImageMagickFilter ) )
+ ((ImageMagickFilter *)pImportFilter)->SetImportDPI( pOptions->GetDPI() );
+
// Set the preview bitmap flag to avoid adding the bitmap to the global bitmap list
((BaseBitmapFilter *)pImportFilter)->SetPreviewBitmap(TRUE);
Xara