Skip to content

Commit 33c910d

Browse files
authored
Fix issue with Cell::get_contained_cells() utility function (#2873)
1 parent bf33a9e commit 33c910d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/cell.cpp‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,6 +1272,9 @@ struct ParentCellStack {
12721272
//! compute an instance for the provided distribcell index
12731273
int32_t compute_instance(int32_t distribcell_index) const
12741274
{
1275+
if (distribcell_index == C_NONE)
1276+
return 0;
1277+
12751278
int32_t instance = 0;
12761279
for (const auto& parent_cell : this->parent_cells_) {
12771280
auto& cell = model::cells[parent_cell.cell_index];

0 commit comments

Comments
 (0)