From 141cb6e7c285c8df889ca7aa9b216f21a6830952 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Fri, 3 Nov 2017 00:06:06 +0100 Subject: [PATCH] In Occurrence_Contains(), accept everything when _instance is NULL. * Bug: In Hurricane::Occurrence_Contains(), when the Instance to match is set to NULL, that means we have to accept *all* instances instead of rejecting them all. This bug was making the Cell::flattenedNets() to do nothing in digital mode. --- hurricane/src/hurricane/Occurrences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hurricane/src/hurricane/Occurrences.cpp b/hurricane/src/hurricane/Occurrences.cpp index cce5d612..834656f2 100644 --- a/hurricane/src/hurricane/Occurrences.cpp +++ b/hurricane/src/hurricane/Occurrences.cpp @@ -45,7 +45,7 @@ namespace Hurricane { bool Occurrence_Contains::accept ( Occurrence occurrence ) const { - if (not _instance) return false; + if (not _instance) return true; if (dynamic_cast(occurrence.getEntity()) == _instance) return true; for ( Instance* instance : occurrence.getPath().getInstances() ) {