summaryrefslogtreecommitdiff
path: root/src/eval/raw.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-30 14:12:28 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-30 14:12:28 +0200
commitf9e115daf54c29358f890b137f50a33a781af680 (patch)
tree496de52246629ea8039db6beea94eb779ed2851d /src/eval/raw.rs
parentf7c67cde72e6a67f45180856b332bae9863243bd (diff)
New block spacing model
Diffstat (limited to 'src/eval/raw.rs')
-rw-r--r--src/eval/raw.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eval/raw.rs b/src/eval/raw.rs
index 2d82fca8..6545ea5a 100644
--- a/src/eval/raw.rs
+++ b/src/eval/raw.rs
@@ -213,6 +213,8 @@ impl PartialOrd for RawLength {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
if self.em.is_zero() && other.em.is_zero() {
self.length.partial_cmp(&other.length)
+ } else if self.length.is_zero() && other.length.is_zero() {
+ self.em.partial_cmp(&other.em)
} else {
None
}