From 97fa41232d37b9c96abbfe970ac2c7089c3538ae Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 25 Jan 2017 16:28:44 -0800 Subject: [PATCH] Fix swapped width and height in `Size2D::ceil()`. --- Cargo.toml | 2 +- src/size.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 210b0c4..72ca22d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "euclid" -version = "0.10.3" +version = "0.10.4" authors = ["The Servo Project Developers"] description = "Geometry primitives" documentation = "http://doc.servo.org/euclid/" diff --git a/src/size.rs b/src/size.rs index 2f8979b..ff0301c 100644 --- a/src/size.rs +++ b/src/size.rs @@ -75,7 +75,7 @@ impl TypedSize2D { /// /// This behavior is preserved for negative values (unlike the basic cast). pub fn ceil(&self) -> Self { - TypedSize2D::new(self.height.ceil(), self.width.ceil()) + TypedSize2D::new(self.width.ceil(), self.height.ceil()) } }