Skip to content

Commit

Permalink
Merge pull request #1759 from KLayout/bugfix/issue-1743
Browse files Browse the repository at this point in the history
Fixed issue #1743 (strmxor shows no difference, klayout xor shows 85,…
  • Loading branch information
klayoutmatthias authored Jul 1, 2024
2 parents 6a38683 + 4e8bad1 commit e56c7d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/tools/xor/lay_plugin/layXORToolDialog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down

0 comments on commit e56c7d6

Please sign in to comment.