Fixed a LEF/DEF reader bug (was '+ RECT' or '+ POLYGON' in SPECIALNETS)

This commit is contained in:
Matthias Koefferlein
2020-04-18 18:48:25 +02:00
parent 70d8334f8c
commit 9a7f0a9c2a
2 changed files with 6 additions and 4 deletions
@@ -773,17 +773,19 @@ DEFImporter::read_nets (db::Layout &layout, db::Cell &design, double scale, bool
} else {
bool prefixed = false;
bool can_have_rect_or_polygon = true;
if ((was_shield = test ("SHIELD")) == true || test ("NOSHIELD") || test ("ROUTED") || test ("FIXED") || test ("COVER")) {
if (was_shield) {
take ();
}
prefixed = true;
can_have_rect_or_polygon = test ("+");
}
bool any = false;
if (test ("POLYGON")) {
if (can_have_rect_or_polygon && test ("POLYGON")) {
std::string ln = get ();
@@ -801,7 +803,7 @@ DEFImporter::read_nets (db::Layout &layout, db::Cell &design, double scale, bool
any = true;
} else if (test ("RECT")) {
} else if (can_have_rect_or_polygon && test ("RECT")) {
std::string ln = get ();