evince r3454 - in trunk: . backend/djvu



Author: chpe
Date: Sun Feb 15 13:53:01 2009
New Revision: 3454
URL: http://svn.gnome.org/viewvc/evince?rev=3454&view=rev

Log:
	* backend/djvu/djvu-document.c: (djvu_document_load): Make sure
	to always set @error when returning FALSE. Fix a typo.

Modified:
   trunk/ChangeLog
   trunk/backend/djvu/djvu-document.c

Modified: trunk/backend/djvu/djvu-document.c
==============================================================================
--- trunk/backend/djvu/djvu-document.c	(original)
+++ trunk/backend/djvu/djvu-document.c	Sun Feb 15 13:53:01 2009
@@ -168,6 +168,10 @@
 
 	if (!doc) {
 		g_free (filename);
+    		g_set_error_literal (error,
+				     EV_DOCUMENT_ERROR,
+				     EV_DOCUMENT_ERROR_INVALID,
+				     _("DJVU document has incorrect format"));
 		return FALSE;
 	}
 
@@ -244,7 +248,7 @@
 		g_set_error_literal (error,
                                      G_FILE_ERROR,
                                      G_FILE_ERROR_EXIST,
-                                     _("The document is composed by several files. "
+				     _("The document is composed of several files. "
                                        "One or more of such files cannot be accessed."));
 
 		return FALSE;



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