layout: use inclusive range to describe via layers

This commit is contained in:
Mikolaj Wielgus 2024-06-10 23:51:15 +02:00
parent 6884ca6531
commit 8c9a13e712
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ impl<R: RulesTrait> Layout<R> {
pub fn add_via(&mut self, weight: ViaWeight) -> Result<GenericIndex<ViaWeight>, Infringement> {
let compound = self.drawing.add_compound(weight.into());
for layer in weight.from_layer..weight.to_layer {
for layer in weight.from_layer..=weight.to_layer {
let dot = self.drawing.add_fixed_dot(FixedDotWeight {
circle: weight.circle,
layer,