mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-09-20 20:07:57 +08:00
add support for alternative colorspace in separation colorspaces #89
This commit is contained in:
@@ -122,12 +122,12 @@
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!resourceStore.TryGetNamedColorSpace(name, out var colorSpaceNamedToken) || !(colorSpaceNamedToken is NameToken newName))
|
||||
if (!resourceStore.TryGetNamedColorSpace(name, out var colorSpaceNamedToken))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return newName.TryMapToColorSpace(out colorSpaceResult);
|
||||
return colorSpaceNamedToken.Name.TryMapToColorSpace(out colorSpaceResult);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user