summaryrefslogtreecommitdiff
path: root/src/cmstypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmstypes.c')
-rw-r--r--src/cmstypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmstypes.c b/src/cmstypes.c
index 085f796..75fad1d 100644
--- a/src/cmstypes.c
+++ b/src/cmstypes.c
@@ -2529,7 +2529,7 @@ cmsBool WriteSetOfCurves(struct _cms_typehandler_struct* self, cmsIOHANDLER* io,
// If this is a table-based curve, use curve type even on V4
CurrentType = Type;
- if (Curves[i] ->nSegments == 0)
+ if ((Curves[i] ->nSegments == 0)||(Curves[i]->nSegments == 2) && (Curves[i] ->Segments[1].Type == 0))
CurrentType = cmsSigCurveType;
else
if (Curves[i] ->Segments[0].Type < 0)