From 59a9e6d08cbf8e99e704752edc1e604d607be164 Mon Sep 17 00:00:00 2001
From: Richard Hughes <richard@hughsie.com>
Date: Thu, 28 Feb 2013 09:46:52 +0000
Subject: [PATCH 1/2] If we pass a linear cmsToneCurve to cmsSmoothToneCurve()
 return with success

This is an optimisation, not an error.
---
 src/cmsgamma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmsgamma.c b/src/cmsgamma.c
index 0a06e1d..cb6e700 100644
--- a/src/cmsgamma.c
+++ b/src/cmsgamma.c
@@ -964,7 +964,7 @@ cmsBool  CMSEXPORT cmsSmoothToneCurve(cmsToneCurve* Tab, cmsFloat64Number lambda
 
     if (Tab == NULL) return FALSE;
 
-    if (cmsIsToneCurveLinear(Tab)) return FALSE; // Nothing to do
+    if (cmsIsToneCurveLinear(Tab)) return TRUE; // Nothing to do
 
     nItems = Tab -> nEntries;
 
-- 
1.8.1.4

