mirror of https://codeberg.org/topola/topola.git
layout: use inclusive range to describe via layers
This commit is contained in:
parent
6884ca6531
commit
8c9a13e712
|
|
@ -77,7 +77,7 @@ impl<R: RulesTrait> Layout<R> {
|
||||||
pub fn add_via(&mut self, weight: ViaWeight) -> Result<GenericIndex<ViaWeight>, Infringement> {
|
pub fn add_via(&mut self, weight: ViaWeight) -> Result<GenericIndex<ViaWeight>, Infringement> {
|
||||||
let compound = self.drawing.add_compound(weight.into());
|
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 {
|
let dot = self.drawing.add_fixed_dot(FixedDotWeight {
|
||||||
circle: weight.circle,
|
circle: weight.circle,
|
||||||
layer,
|
layer,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue