Correct the calculation for the position of right-aligned lines in the visual tools

Originally committed to SVN as r6477.
This commit is contained in:
Thomas Goyne 2012-02-16 03:52:50 +00:00
parent 9b69ce7a27
commit 6339df3521

View file

@ -444,7 +444,7 @@ Vector2D VisualToolBase::GetLinePosition(AssDialogue *diag) {
else if (hor == 1) else if (hor == 1)
x = (script_res.X() + margin[0] - margin[1]) / 2; x = (script_res.X() + margin[0] - margin[1]) / 2;
else else
x = margin[1]; x = script_res.X() - margin[1];
if (vert == 0) if (vert == 0)
y = script_res.Y() - margin[2]; y = script_res.Y() - margin[2];