diff --git a/crlcore/src/ccore/gds/GdsDriver.cpp b/crlcore/src/ccore/gds/GdsDriver.cpp index 6a0c5cfc..99bc3b19 100644 --- a/crlcore/src/ccore/gds/GdsDriver.cpp +++ b/crlcore/src/ccore/gds/GdsDriver.cpp @@ -401,7 +401,8 @@ namespace { _ostream << LIBNAME( "LIB" ); // Generate a GDSII which coordinates are relatives to the um. - double gridPerUu = 10e-6 / DbU::getPhysicalsPerGrid(); + // Bug correction courtesy of M. Koefferlein (KLayout). + double gridPerUu = DbU::getPhysicalsPerGrid() / 1e-6; record = GdsRecord( GdsRecord::UNITS ); record.push( _dbuPerUu );