Skip to content
Extraits de code Groupes Projets
Valider a5e800bc rédigé par Niels Martin Hansen's avatar Niels Martin Hansen
Parcourir les fichiers

Fix a bug in mid-aligned line positioning

Originally committed to SVN as r1558.
parent 3c58dea7
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -353,7 +353,7 @@ function karaskel.preproc_line_pos(meta, styles, line)
line.valign = "bottom"
elseif line.styleref.align >= 4 and line.styleref.align <= 6 then
-- Mid aligned
line.top = (meta.res_y - line.eff_margin_t - line.eff_margin_b) / 2 + line.eff_margin_t
line.top = (meta.res_y - line.eff_margin_t - line.eff_margin_b - line.height) / 2 + line.eff_margin_t
line.middle = line.top + line.height / 2
line.bottom = line.top + line.height
line.y = line.middle
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter