From 59a0a65b0f6b203513cb73f53002052f33dc978a Mon Sep 17 00:00:00 2001 From: Grigori Goronzy Date: Tue, 11 Feb 2014 23:47:18 +0100 Subject: [PATCH] Don't reset wrap_style on \r This isn't part of a style. Fixes libass#45, GC#116. --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 5f03ab5..09bcedf 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -785,7 +785,6 @@ void reset_render_context(ASS_Renderer *render_priv, ASS_Style *style) render_priv->state.frx = render_priv->state.fry = 0.; render_priv->state.frz = M_PI * style->Angle / 180.; render_priv->state.fax = render_priv->state.fay = 0.; - render_priv->state.wrap_style = render_priv->track->WrapStyle; render_priv->state.font_encoding = style->Encoding; } @@ -800,6 +799,7 @@ init_render_context(ASS_Renderer *render_priv, ASS_Event *event) render_priv->state.parsed_tags = 0; reset_render_context(render_priv, render_priv->state.style); + render_priv->state.wrap_style = render_priv->track->WrapStyle; render_priv->state.evt_type = EVENT_NORMAL; render_priv->state.alignment = render_priv->state.style->Alignment; -- 2.40.0