diff options
Diffstat (limited to 'tex/context/base/lpdf-grp.lua')
-rw-r--r-- | tex/context/base/lpdf-grp.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tex/context/base/lpdf-grp.lua b/tex/context/base/lpdf-grp.lua index 20946ca4a..aba5771fd 100644 --- a/tex/context/base/lpdf-grp.lua +++ b/tex/context/base/lpdf-grp.lua @@ -90,13 +90,8 @@ function nodeinjections.injectbitmap(t) colorspace = "cmyk" end end - if colorspace == "gray" then - colorspace = pdfconstant("DeviceGray") - elseif colorspace == "rgb" then - colorspace = pdfconstant("DeviceRGB") - elseif colorspace == "cmyk" then - colorspace = pdfconstant("DeviceCMYK") - else + colorspace = lpdf.colorspaceconstants[colorspace] + if not colorspace then return -- fatal error end local d = pdfdictionary { |