mirror of https://github.com/KLayout/klayout.git
More robustness of snap algorithm for unit tests
This commit is contained in:
parent
6b5c951088
commit
7309688944
|
|
@ -58,7 +58,7 @@ namespace lay
|
|||
*/
|
||||
inline db::DCoord snap (db::DCoord c)
|
||||
{
|
||||
return floor (c + 0.5);
|
||||
return floor (c + 0.5 + db::coord_traits<double>::prec ());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue