From a3ffbe45f9bab1a8680b32ad68c678fb0c9d50c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Thu, 23 May 2024 13:27:43 +0800 Subject: [PATCH] dist --- LunaTranslator/LunaTranslator/gui/textbrowser.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/textbrowser.py b/LunaTranslator/LunaTranslator/gui/textbrowser.py index e6f0627a..914c8c71 100644 --- a/LunaTranslator/LunaTranslator/gui/textbrowser.py +++ b/LunaTranslator/LunaTranslator/gui/textbrowser.py @@ -446,14 +446,14 @@ class Textbrowser(QLabel): guesswidth1 = gw * len(word["orig"]) tailx = wwww - guesslinehead pos1 = ( - tl1.x(), + tl1.x() + 1, tl1.y(), - tailx - tl1.x(), + tailx - tl1.x() - 2, heigth, ) xx = int(guesswidth1 - (tailx - tl1.x())) guesslinehead = None - pos2 = tl3.x() - xx, tl3.y(), xx, heigth + pos2 = tl3.x() + 1 - xx, tl3.y(), xx - 2, heigth if ( globalconfig["usesearchword"] or globalconfig["usecopyword"] @@ -499,9 +499,9 @@ class Textbrowser(QLabel): len(word["orig"]) ) pos1 = ( - tl1.x(), + tl1.x() + 1, tl1.y(), - tl2.x() - tl1.x(), + tl2.x() - tl1.x() - 2, heigth, ) if (