LibPDF: Replace another TODO with a message

Like ca1a98ba9f, but for stroke color.
This commit is contained in:
Nico Weber 2023-10-20 23:52:13 -04:00 committed by Andreas Kling
parent 719b12b19d
commit 34cb506bad
Notes: sideshowbarker 2024-07-16 20:31:50 +09:00

View file

@ -563,8 +563,10 @@ RENDERER_HANDLER(set_stroking_color_extended)
{
// FIXME: Handle Pattern color spaces
auto last_arg = args.last();
if (last_arg.has<NonnullRefPtr<Object>>() && last_arg.get<NonnullRefPtr<Object>>()->is<NameObject>())
TODO();
if (last_arg.has<NonnullRefPtr<Object>>() && last_arg.get<NonnullRefPtr<Object>>()->is<NameObject>()) {
dbgln("pattern space {}", last_arg.get<NonnullRefPtr<Object>>()->cast<NameObject>()->name());
return Error::rendering_unsupported_error("Pattern color spaces not yet implemented");
}
state().stroke_color = TRY(state().stroke_color_space->color(args));
return {};