result-to-fo.c patch
Charles Bozeman <[email protected]>
| Newsgroups | gmane.text.xml.xmlroff.general |
|---|---|
| Message-ID | <[email protected]> |
This patch is to keep from segfaulting when it encounters properties that aren't handled. Charlie Bozeman
result-to.fo.c-pat
(text/x-patch, 1.6 KB)
Index: result-to-fo.c
===================================================================
RCS file: /cvsroot/xmlroff/xmlroff/result-to-fo.c,v
retrieving revision 1.21
diff -c -r1.21 result-to-fo.c
*** result-to-fo.c 2 May 2004 21:54:05 -0000 1.21
--- result-to-fo.c 17 May 2004 00:54:56 -0000
***************
*** 876,896 ****
g_hash_table_lookup (prop_eval_hash,
xslAttrListIteratorName (iterator));
! property_class =
! g_type_class_ref (type_func());
!
! property =
! fo_property_new_from_expr (property_class,
! xslAttrListIteratorValue (iterator),
! parent_context,
! font_size ? font_size : NULL,
! fo_fo,
! &error);
! if (error != NULL)
! {
! fo_object_log_error (FO_OBJECT (fo_fo),
! &error);
! }
g_type_class_unref (property_class);
node_properties = g_slist_prepend (node_properties,
--- 876,899 ----
g_hash_table_lookup (prop_eval_hash,
xslAttrListIteratorName (iterator));
! if (type_func != NULL)
! {
! property_class =
! g_type_class_ref (type_func());
!
! property =
! fo_property_new_from_expr (property_class,
! xslAttrListIteratorValue (iterator),
! parent_context,
! font_size ? font_size : NULL,
! fo_fo,
! &error);
! if (error != NULL)
! {
! fo_object_log_error (FO_OBJECT (fo_fo),
! &error);
! }
! }
g_type_class_unref (property_class);
node_properties = g_slist_prepend (node_properties,