Merge pull request #1410 from KLayout/issue-1409

Issue 1409
This commit is contained in:
Matthias Köfferlein 2023-07-04 07:58:32 +02:00 committed by GitHub
commit e85f9281d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -489,7 +489,9 @@ Service::selection_bbox ()
if (tv_list != 0) {
for (std::vector<db::DCplxTrans>::const_iterator t = tv_list->begin (); t != tv_list->end (); ++t) {
if (r->shape ().is_text ()) {
box += *t * text_info.bbox (ctx_trans * r->shape ().text (), *t);
db::Text text;
r->shape ().text (text);
box += *t * text_info.bbox (ctx_trans * text, *t);
} else {
box += *t * (ctx_trans * r->shape ().bbox ());
}