mirror of https://github.com/KLayout/klayout.git
Fixed #45 (Partial selection does not capture instance)
This commit is contained in:
parent
b44f5ab156
commit
692ae10fe2
|
|
@ -2495,7 +2495,7 @@ PartialService::selection_to_view ()
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
// compute the global transformation including movement, context and explicit transformation
|
// compute the global transformation including movement, context and explicit transformation
|
||||||
db::ICplxTrans gt = db::VCplxTrans (cv->layout ().dbu ()) * db::DCplxTrans (move_trans) * db::CplxTrans (cv->layout ().dbu ());
|
db::ICplxTrans gt = db::VCplxTrans (1.0 / cv->layout ().dbu ()) * db::DCplxTrans (move_trans) * db::CplxTrans (cv->layout ().dbu ());
|
||||||
gt *= (cv.context_trans () * r->first.trans ());
|
gt *= (cv.context_trans () * r->first.trans ());
|
||||||
|
|
||||||
const std::vector<db::DCplxTrans> *tv_list = tv.per_cv (r->first.cv_index ());
|
const std::vector<db::DCplxTrans> *tv_list = tv.per_cv (r->first.cv_index ());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue