Merge pull request #1759 from KLayout/bugfix/issue-1743

Fixed issue #1743 (strmxor shows no difference, klayout xor shows 85,…
This commit is contained in:
Matthias Köfferlein 2024-07-01 18:23:50 +02:00 committed by GitHub
commit e56c7d6948
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {