diff --git a/Userland/Libraries/LibPDF/ColorSpace.cpp b/Userland/Libraries/LibPDF/ColorSpace.cpp index 60ffff7d43..b4a46f5426 100644 --- a/Userland/Libraries/LibPDF/ColorSpace.cpp +++ b/Userland/Libraries/LibPDF/ColorSpace.cpp @@ -39,6 +39,8 @@ PDFErrorOr> ColorSpace::create(DeprecatedFlyString con return DeviceRGBColorSpace::the(); if (name == CommonNames::DeviceCMYK) return DeviceCMYKColorSpace::the(); + if (name == CommonNames::Pattern) + return Error::rendering_unsupported_error("Pattern color spaces not yet implemented"); VERIFY_NOT_REACHED(); } diff --git a/Userland/Libraries/LibPDF/ColorSpace.h b/Userland/Libraries/LibPDF/ColorSpace.h index 5a01cc5beb..ae4fba0231 100644 --- a/Userland/Libraries/LibPDF/ColorSpace.h +++ b/Userland/Libraries/LibPDF/ColorSpace.h @@ -21,7 +21,7 @@ V(Lab, false) \ V(ICCBased, false) \ V(Indexed, false) \ - V(Pattern, false) \ + V(Pattern, true) \ V(Separation, false) \ V(DeviceN, false)