1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 11:27:35 +00:00

LibPDF: Propagate ColorSpace errors

This commit is contained in:
Matthew Olsson 2022-03-05 17:52:00 -07:00 committed by Andreas Kling
parent 73cf8205b4
commit d82bd885ce
4 changed files with 26 additions and 27 deletions

View file

@ -97,7 +97,7 @@ private:
void set_graphics_state_from_dict(NonnullRefPtr<DictObject>);
// shift is the manual advance given in the TJ command array
void show_text(String const&, float shift = 0.0f);
RefPtr<ColorSpace> get_color_space(Value const&);
PDFErrorOr<NonnullRefPtr<ColorSpace>> get_color_space(Value const&);
ALWAYS_INLINE GraphicsState const& state() const { return m_graphics_state_stack.last(); }
ALWAYS_INLINE GraphicsState& state() { return m_graphics_state_stack.last(); }