Merge pull request #1480 from KLayout/issue-1307

Issue 1307
This commit is contained in:
Matthias Köfferlein 2023-09-12 07:22:51 +02:00 committed by GitHub
commit 3dff137e9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View File

@ -1614,6 +1614,20 @@ DEFImporter::read_components (db::Layout &layout, std::list<std::pair<std::strin
d = pt - m->second.bbox.transformed (ft).lower_left ();
is_placed = true;
} else if (test ("UNPLACED")) {
// invalid "UNPLACED", but yet it appears to be existing (#1307)
if (test ("(")) {
db::Point pt = get_point (scale);
test (")");
ft = get_orient (false /*mandatory*/);
d = pt - m->second.bbox.transformed (ft).lower_left ();
is_placed = true;
}
} else if (test ("MASKSHIFT")) {
maskshift = get ();

View File

@ -8,7 +8,7 @@ UNITS DISTANCE MICRONS 1000 ;
DIEAREA ( 0 0 ) ( 1000 2000 ) ;
COMPONENTS 3 ;
- macro1 macro1 + PLACED ( 0 0 ) N ;
- macro1 macro1 + UNPLACED ( 0 0 ) N ;
END COMPONENTS
SPECIALNETS 1 ;