mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
LibPDF: Use original error for failing ICC load
This commit is contained in:
parent
275542aaf8
commit
3b616b6af8
1 changed files with 1 additions and 1 deletions
|
@ -506,7 +506,7 @@ PDFErrorOr<NonnullRefPtr<ColorSpace>> ICCBasedColorSpace::create(Document* docum
|
||||||
return Error { Error::Type::Internal, "Alternate color spaces in array format are not supported" };
|
return Error { Error::Type::Internal, "Alternate color spaces in array format are not supported" };
|
||||||
}
|
}
|
||||||
|
|
||||||
return Error { Error::Type::MalformedPDF, "Failed to load ICC color space with malformed profile and no alternate" };
|
return maybe_profile.release_error();
|
||||||
}
|
}
|
||||||
|
|
||||||
ICCBasedColorSpace::ICCBasedColorSpace(NonnullRefPtr<Gfx::ICC::Profile> profile)
|
ICCBasedColorSpace::ICCBasedColorSpace(NonnullRefPtr<Gfx::ICC::Profile> profile)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue