mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibPDF: Accept floats as line dash pattern phases
This commit is contained in:
parent
95a804bc4e
commit
731676c041
Notes:
sideshowbarker
2024-07-17 14:36:19 +09:00
Author: https://github.com/janso3 Commit: https://github.com/SerenityOS/serenity/commit/731676c041 Pull-request: https://github.com/SerenityOS/serenity/pull/18031 Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ RENDERER_HANDLER(set_dash_pattern)
|
||||||
Vector<int> pattern;
|
Vector<int> pattern;
|
||||||
for (auto& element : *dash_array)
|
for (auto& element : *dash_array)
|
||||||
pattern.append(element.to_int());
|
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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue