Bugfix: moving a text with a non-centered vertical alignment now uses the right location

This commit is contained in:
Matthias Koefferlein 2023-09-02 23:47:40 +02:00
parent 81e6141245
commit 4a475a7e21
1 changed files with 2 additions and 1 deletions

View File

@ -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 ());
}