LibPDF: Accept floats as line dash pattern phases

This commit is contained in:
Julian Offenhäuser 2023-03-24 21:56:09 +01:00 committed by Andrew Kaster
parent 95a804bc4e
commit 731676c041
Notes: sideshowbarker 2024-07-17 14:36:19 +09:00

View file

@ -197,7 +197,7 @@ RENDERER_HANDLER(set_dash_pattern)
Vector<int> pattern;
for (auto& element : *dash_array)
pattern.append(element.to_int());
state().line_dash_pattern = LineDashPattern { pattern, args[1].get<int>() };
state().line_dash_pattern = LineDashPattern { pattern, args[1].to_int() };
return {};
}