]> granicus.if.org Git - libass/commitdiff
Don't reset wrap_style on \r
authorGrigori Goronzy <greg@chown.ath.cx>
Tue, 11 Feb 2014 22:47:18 +0000 (23:47 +0100)
committerGrigori Goronzy <greg@chown.ath.cx>
Tue, 11 Feb 2014 22:47:18 +0000 (23:47 +0100)
This isn't part of a style. Fixes libass#45, GC#116.

libass/ass_render.c

index 5f03ab5ba8cae0615a22484bb2df3ea2ffaf40c7..09bcedf6aa1999c911a3ab6713a4f6dbdb63376f 100644 (file)
@@ -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;