[librsvg: 2/3] Switch Default impl for PathCommand to an all-zeroes bit pattern
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg: 2/3] Switch Default impl for PathCommand to an all-zeroes bit pattern
- Date: Wed, 1 Apr 2020 19:48:30 +0000 (UTC)
commit fe2b5e77d4c541075ad57ba3b290487789788209
Author: Sergey "Shnatsel" Davidoff <sdavydov google com>
Date: Sat Mar 28 22:22:26 2020 +0100
Switch Default impl for PathCommand to an all-zeroes bit pattern
rsvg_internals/src/path_builder.rs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/rsvg_internals/src/path_builder.rs b/rsvg_internals/src/path_builder.rs
index 2a56d66a..b7deaa98 100644
--- a/rsvg_internals/src/path_builder.rs
+++ b/rsvg_internals/src/path_builder.rs
@@ -18,7 +18,7 @@ pub enum Sweep {
Positive,
}
-#[derive(Debug, Copy, Clone, PartialEq)]
+#[derive(Debug, Copy, Clone, PartialEq, Default)]
pub struct CubicBezierCurve {
/// The (x, y) coordinates of the first control point.
pub pt1: (f64, f64),
@@ -334,7 +334,7 @@ pub enum PathCommand {
impl Default for PathCommand {
fn default() -> Self {
- PathCommand::ClosePath
+ PathCommand::CurveTo(CubicBezierCurve::default())
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]