1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 06:04:57 +00:00

LibPDF: Use original error for failing ICC load

This commit is contained in:
Nico Weber 2024-02-20 14:59:21 -05:00 committed by Andreas Kling
parent 275542aaf8
commit 3b616b6af8

View file

@ -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::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)