Respect object bounds when trimming labels

This commit is contained in:
Mikei386
2026-06-22 16:25:16 +02:00
parent 26e1879104
commit 7243250abc
2 changed files with 8 additions and 2 deletions
+1
View File
@@ -131,6 +131,7 @@ function objectContentEndMm(obj) {
if (obj.hidden) return 0;
if (state.design.orientation === "portrait") return obj.y + obj.h;
if (obj.type !== "text" && obj.type !== "symbol") return obj.x + obj.w;
if (obj.manualSize) return obj.x + obj.w;
const { value } = objectFont(obj);
ctx.save();