[librsvg: 3/7] Use ULength for the R property, since it does not accept negative values.
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 3/7] Use ULength for the R property, since it does not accept negative values.
- Date: Sat, 5 Mar 2022 03:35:30 +0000 (UTC)
commit d697cb857c6aecc9a5cb84e37b4f81e5ab3c1b19
Author: Federico Mena Quintero <federico gnome org>
Date: Fri Mar 4 19:42:57 2022 -0600
Use ULength for the R property, since it does not accept negative values.
Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/670>
src/property_defs.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/property_defs.rs b/src/property_defs.rs
index 1ffd6e029..a28bf365e 100644
--- a/src/property_defs.rs
+++ b/src/property_defs.rs
@@ -809,9 +809,9 @@ make_property!(
///
/// https://www.w3.org/TR/SVG2/geometry.html#R
R,
- default: Length::<Both>::parse_str("0").unwrap(),
+ default: ULength::<Both>::parse_str("0").unwrap(),
inherits_automatically: false,
- newtype_parse: Length<Both>,
+ newtype_parse: ULength<Both>,
);
make_property!(
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]