🐛 Fix width on rotation

This commit is contained in:
Elena Torro
2025-11-03 16:37:17 +01:00
parent 69bbdad570
commit b76bfa2197
3 changed files with 8 additions and 8 deletions

View File

@@ -330,7 +330,7 @@ impl Shape {
self.selrect.set_ltrb(left, top, right, bottom);
if let Type::Text(ref mut text) = self.shape_type {
text.update_layout(self.selrect);
text.set_xywh(left, top, right - left, bottom - top);
text.set_xywh(left, top, self.selrect.width(), self.selrect.height());
}
}