From 4a475a7e213c9d55eb77d24df60c8f408a6579f9 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 2 Sep 2023 23:47:40 +0200 Subject: [PATCH] Bugfix: moving a text with a non-centered vertical alignment now uses the right location --- src/edt/edt/edtService.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/edt/edt/edtService.cc b/src/edt/edt/edtService.cc index 8afdf95e3..d2bb74075 100644 --- a/src/edt/edt/edtService.cc +++ b/src/edt/edt/edtService.cc @@ -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 ()); }