def: Fix export units for non-lambda processes

Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
gatecat 2021-11-23 18:50:00 +00:00
parent ddb684bfe1
commit a8dd84838b
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ namespace {
int DefDriver::getUnits () { return _units; }
int DefDriver::toDefUnits ( DbU::Unit u ) { return (int)round(DbU::getLambda(u)*getUnits()); }
int DefDriver::toDefUnits ( DbU::Unit u ) { return (int)round(DbU::getGrid(u)); }
DbU::Unit DefDriver::getSliceHeight () { return _sliceHeight; }
DbU::Unit DefDriver::getPitchWidth () { return _pitchWidth; };
inline Cell* DefDriver::getCell () { return _cell; }