From 6339df35219fca16cd4296219561ed1f12578c3c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 16 Feb 2012 03:52:50 +0000 Subject: [PATCH] Correct the calculation for the position of right-aligned lines in the visual tools Originally committed to SVN as r6477. --- aegisub/src/visual_tool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aegisub/src/visual_tool.cpp b/aegisub/src/visual_tool.cpp index d1443b565..88866b36f 100644 --- a/aegisub/src/visual_tool.cpp +++ b/aegisub/src/visual_tool.cpp @@ -444,7 +444,7 @@ Vector2D VisualToolBase::GetLinePosition(AssDialogue *diag) { else if (hor == 1) x = (script_res.X() + margin[0] - margin[1]) / 2; else - x = margin[1]; + x = script_res.X() - margin[1]; if (vert == 0) y = script_res.Y() - margin[2];