[f-spot/FSPOT_0_6_0_STABLE] Allow printing with color profile enabled
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [f-spot/FSPOT_0_6_0_STABLE] Allow printing with color profile enabled
- Date: Mon, 4 Jan 2010 19:19:25 +0000 (UTC)
commit dab8fd561e92abdeab56224077b1c333416f8d68
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jan 4 20:18:32 2010 +0100
Allow printing with color profile enabled
Restore the previous behavior, i.e. use a standard rgb profile if the image doesn't have an embedded profile.
Fixes bgo #604465
src/Core/ColorManagement.cs | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/Core/ColorManagement.cs b/src/Core/ColorManagement.cs
index a8f4526..143531a 100644
--- a/src/Core/ColorManagement.cs
+++ b/src/Core/ColorManagement.cs
@@ -85,6 +85,8 @@ namespace FSpot {
if (pixbuf == null || pixbuf.HasAlpha)
return;
+ image_profile = image_profile ?? Cms.Profile.CreateStandardRgb ();
+
Cms.Profile [] list = new Cms.Profile [] { image_profile, destination_profile };
Cms.Transform transform = new Cms.Transform (list,
PixbufUtils.PixbufCmsFormat (pixbuf),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]