From: Marco Pesenti Gritti Date: Fri, 8 Jul 2005 11:36:16 +0000 (+0000) Subject: Do not try to create the object if type is invalid. X-Git-Tag: EVINCE_0_3_3~132 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=0848b6e8ad61c6074c73b0be2933a2c943e5fc51;p=evince.git Do not try to create the object if type is invalid. 2005-07-08 Marco Pesenti Gritti * backend/ev-document-factory.c: (ev_document_factory_get_document): Do not try to create the object if type is invalid. --- diff --git a/ChangeLog b/ChangeLog index aa1a2d54..bc4120c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-07-08 Marco Pesenti Gritti + + * backend/ev-document-factory.c: + (ev_document_factory_get_document): + + Do not try to create the object if type + is invalid. + 2005-07-08 Marco Pesenti Gritti * ps/ps-document.c: (ps_document_dispose), diff --git a/backend/ev-document-factory.c b/backend/ev-document-factory.c index 251ede3f..e73344a0 100644 --- a/backend/ev-document-factory.c +++ b/backend/ev-document-factory.c @@ -138,7 +138,7 @@ ev_document_factory_get_document (const char *mime_type) type = ev_document_type_get_from_mime (mime_type); - if (type != G_TYPE_NONE) { + if (type != G_TYPE_INVALID) { return g_object_new (type, NULL); }