changeset 28838:98231639866f

Only use first \org in a line.
author greg
date Sat, 07 Mar 2009 23:56:03 +0000
parents e5171567fe6c
children fda4cf558544
files libass/ass_render.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_render.c	Sat Mar 07 17:41:34 2009 +0000
+++ b/libass/ass_render.c	Sat Mar 07 23:56:03 2009 +0000
@@ -1059,10 +1059,12 @@
 		skip(')');
 		mp_msg(MSGT_ASS, MSGL_DBG2, "org(%d, %d)\n", v1, v2);
 		//				render_context.evt_type = EVENT_POSITIONED;
-		render_context.org_x = v1;
-		render_context.org_y = v2;
-		render_context.have_origin = 1;
-		render_context.detect_collisions = 0;
+		if (!render_context.have_origin) {
+			render_context.org_x = v1;
+			render_context.org_y = v2;
+			render_context.have_origin = 1;
+			render_context.detect_collisions = 0;
+		}
 	} else if (mystrcmp(&p, "t")) {
 		double v[3];
 		int v1, v2;