From 9b2fd18cd48cf13b7e42552a85707e1237b22c25 Mon Sep 17 00:00:00 2001 From: torque Date: Fri, 11 Sep 2015 11:16:24 -0700 Subject: [PATCH] Text: metr.typeBounds -> metr.bounds. Failed to get refactored with @a3dcc893bccaa3353e5c58db1b19d0192c8a98cb. See #2. --- l0/ASSFoundation/Section/Text.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l0/ASSFoundation/Section/Text.lua b/l0/ASSFoundation/Section/Text.lua index 31985c2..fa25cd1 100644 --- a/l0/ASSFoundation/Section/Text.lua +++ b/l0/ASSFoundation/Section/Text.lua @@ -62,8 +62,8 @@ return function(ASS, ASSFInst, yutilsMissingMsg, createASSClass, re, util, unico local metr, tagList, shape = self:getTextMetrics(true) local drawing, an = ASS.Draw.DrawingBase{str=shape}, tagList.tags.align:getSet() -- fix position based on aligment - drawing:sub(not an.left and (metr.width-metr.typeBounds.width) / (an.centerH and 2 or 1) or 0, - not an.top and (metr.height-metr.typeBounds.height) / (an.centerV and 2 or 1) or 0 + drawing:sub(not an.left and (metr.width-metr.bounds.w) / (an.centerH and 2 or 1) or 0, + not an.top and (metr.height-metr.bounds.h) / (an.centerV and 2 or 1) or 0 ) -- rotate shape