Skip to content

Commit

Permalink
fix #199
Browse files Browse the repository at this point in the history
  • Loading branch information
s3bk committed Sep 29, 2023
1 parent 6a8952e commit a9fef22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdf/src/object/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ impl ColorSpace {
return Ok(cs);
}
let arr = t!(p.into_array());
let typ = t!(t!(get_index(&arr, 0)).as_name());
let typ_p = t!(get_index(&arr, 0)).clone().resolve(resolve)?;
let typ = t!(typ_p.as_name());

if depth == 0 {
bail!("ColorSpace base recursion");
Expand Down

0 comments on commit a9fef22

Please sign in to comment.