Skip to content

Commit

Permalink
Don't panic on DeviceN colorspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Aug 29, 2024
1 parent 65dcffc commit 27743f2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1346,6 +1346,7 @@ pub enum ColorSpace {
DeviceGray,
DeviceRGB,
DeviceCMYK,
DeviceN,
Pattern,
CalRGB(CalRGB),
CalGray(CalGray),
Expand Down Expand Up @@ -1458,6 +1459,7 @@ fn make_colorspace<'a>(doc: &'a Document, name: &[u8], resources: &'a Dictionary
"DeviceGray" => ColorSpace::DeviceGray,
"DeviceRGB" => ColorSpace::DeviceRGB,
"DeviceCMYK" => ColorSpace::DeviceCMYK,
"DeviceN" => ColorSpace::DeviceN,
_ => {
panic!("color_space {:?} {:?} {:?}", name, cs_name, cs)
}
Expand Down

0 comments on commit 27743f2

Please sign in to comment.