mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibPDF: Use original error for failing ICC load
This commit is contained in:
parent
275542aaf8
commit
3b616b6af8
Notes:
sideshowbarker
2024-07-18 03:20:18 +09:00
Author: https://github.com/nico
Commit: 3b616b6af8
Pull-request: https://github.com/SerenityOS/serenity/pull/23275
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