Pango change broke GtkFB



I don't know much about pango, so i don't know why this happened, but I
needed this to not crash when running GtkFB:

Index: pango/pango-layout.c
===================================================================
RCS file: /cvs/gnome/pango/pango/pango-layout.c,v
retrieving revision 1.42
diff -u -p -r1.42 pango-layout.c
--- pango/pango-layout.c	2000/11/14 01:02:05	1.42
+++ pango/pango-layout.c	2000/11/14 10:01:33
@@ -2904,7 +2904,8 @@ pango_layout_run_get_extents (PangoLayou
 	  
       /* FIXME: Should this simply be run_logical->height += 2 * PANGO_SCALE instead?
        */
-      run_logical->height = MAX (run_logical->height, run_ink->y + run_ink->height - run_logical->y);
+      if (run_ink)
+	run_logical->height = MAX (run_logical->height, run_ink->y + run_ink->height - run_logical->y);
       break;
     }
 }


/ Alex





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]