mirror of https://github.com/KLayout/klayout.git
Bugfix: moving a text with a non-centered vertical alignment now uses the right location
This commit is contained in:
parent
81e6141245
commit
4a475a7e21
|
|
@ -471,6 +471,7 @@ Service::selection_bbox ()
|
|||
// build the transformation variants cache
|
||||
// TODO: this is done multiple times - once for each service!
|
||||
TransformationVariants tv (view ());
|
||||
const db::DCplxTrans &vp = view ()->viewport ().trans ();
|
||||
|
||||
lay::TextInfo text_info (view ());
|
||||
|
||||
|
|
@ -491,7 +492,7 @@ Service::selection_bbox ()
|
|||
if (r->shape ().is_text ()) {
|
||||
db::Text text;
|
||||
r->shape ().text (text);
|
||||
box += *t * text_info.bbox (ctx_trans * text, *t);
|
||||
box += *t * text_info.bbox (ctx_trans * text, vp * *t);
|
||||
} else {
|
||||
box += *t * (ctx_trans * r->shape ().bbox ());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue