Skip to content

Commit

Permalink
Fix bounds correction for detail 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
partim committed Oct 26, 2024
1 parent cbb5d8c commit 0b304ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/railway/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ impl Style {
}

pub fn bounds_correction(&self) -> f64 {
BOUNDS_CORRECTION * (self.detail as f64)
BOUNDS_CORRECTION
* if self.detail == 0 { 1. } else { self.detail as f64 }
}
}

Expand Down

0 comments on commit 0b304ed

Please sign in to comment.