summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/SVG
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/SVG')
-rw-r--r--Userland/Libraries/LibWeb/SVG/ViewBox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/SVG/ViewBox.cpp b/Userland/Libraries/LibWeb/SVG/ViewBox.cpp
index 844f4ae07b..2b948fe4f6 100644
--- a/Userland/Libraries/LibWeb/SVG/ViewBox.cpp
+++ b/Userland/Libraries/LibWeb/SVG/ViewBox.cpp
@@ -30,7 +30,7 @@ Optional<ViewBox> try_parse_view_box(StringView string)
while (!lexer.is_eof()) {
lexer.consume_while([](auto ch) { return is_ascii_space(ch); });
auto token = lexer.consume_until([](auto ch) { return is_ascii_space(ch) && ch != ','; });
- auto maybe_number = token.to_int();
+ auto maybe_number = token.to_float();
if (!maybe_number.has_value())
return {};
switch (state) {