Fixed issue #1743 (strmxor shows no difference, klayout xor shows 85, dbu 99.999 vs 1000)

This commit is contained in:
Matthias Koefferlein 2024-06-29 20:51:37 +02:00
parent 564861abe1
commit 4e8bad1403
1 changed files with 2 additions and 1 deletions

View File

@ -1440,7 +1440,8 @@ XORToolDialog::run_xor ()
}
XORJob job (nworkers, output_mode, op, el_handling, dbu, cva, cvb, tolerances, sub_categories, layer_categories, sub_cells, sub_output_layers, rdb, rdb_cell);
double common_dbu = tl::lcm (cva->layout ().dbu (), cvb->layout ().dbu ());
// NOTE: uses min of both DBUs (see issue #1743)
double common_dbu = std::min (cva->layout ().dbu (), cvb->layout ().dbu ());
for (std::vector<db::DBox>::const_iterator b = boxes.begin (); b != boxes.end (); ++b) {