]> www.fi.muni.cz Git - evince.git/commitdiff
Do not try to create the object if type is invalid.
authorMarco Pesenti Gritti <marco@gnome.org>
Fri, 8 Jul 2005 11:36:16 +0000 (11:36 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Fri, 8 Jul 2005 11:36:16 +0000 (11:36 +0000)
2005-07-08  Marco Pesenti Gritti  <marco@gnome.org>

        * backend/ev-document-factory.c:
        (ev_document_factory_get_document):

        Do not try to create the object if type
        is invalid.

ChangeLog
backend/ev-document-factory.c

index aa1a2d547b3f515f5f098f6483422f7a50079a33..bc4120c182b8db94440d559ad35fafb1f70ecec1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-07-08  Marco Pesenti Gritti  <marco@gnome.org>
+
+       * 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  <mpg@redhat.com>
 
        * ps/ps-document.c: (ps_document_dispose),
index 251ede3fc2af00e666007f569af12f36f0443fda..e73344a062ff2b2db560165612db366c9e0a4f6d 100644 (file)
@@ -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);
        }