changeset 9036:bf3d4483bba1

1000l
author arpi
date Sun, 19 Jan 2003 20:13:49 +0000
parents de34ef288a41
children 00b831ed9582
files libvo/sub.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/sub.c	Sun Jan 19 19:53:18 2003 +0000
+++ b/libvo/sub.c	Sun Jan 19 20:13:49 2003 +0000
@@ -429,7 +429,9 @@
        font.
        *sfalco*
      */
-    if(suboverlap_enabled) obj->y -= vo_font->pic_a[vo_font->font[40]]->h - vo_font->height;
+    if(suboverlap_enabled &&
+       vo_font->font[40]>=0 && vo_font->pic_a[vo_font->font[40]])
+	obj->y -= vo_font->pic_a[vo_font->font[40]]->h - vo_font->height;
 
     h = dys - obj->y;
     if (sub_alignment == 2)