From e1660099454460443ddec61dcff3d866dafc757d Mon Sep 17 00:00:00 2001 From: yinhuaiwei Date: Thu, 23 Jul 2026 09:38:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=BA=A2=E5=A4=96?= =?UTF-8?q?=E7=94=BB=E6=A1=86=E7=9A=84=E6=96=87=E6=9C=AC=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/inspect/simulator/service/ImageAnnotationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/inspect/simulator/service/ImageAnnotationService.java b/src/main/java/com/inspect/simulator/service/ImageAnnotationService.java index 4b0de04..1ff9037 100644 --- a/src/main/java/com/inspect/simulator/service/ImageAnnotationService.java +++ b/src/main/java/com/inspect/simulator/service/ImageAnnotationService.java @@ -193,7 +193,7 @@ public class ImageAnnotationService { // 文本与图形避免重合 // 文本优先展示位置:图形上方 > 图形下方 > 图形中 java.awt.Rectangle occupied = label.occupied; - if (false && occupied != null) { + if (occupied != null) { if (occupied.y - bgH - marginY >= 0) { bgY = occupied.y - bgH - marginY; } else if (occupied.y + occupied.height + bgH + marginY <= imgH) {