[libgxps] Fixed attribute_name and element_name being switched in gxps_parse_error



commit d9809b2a05f3d80800b07b5f816766583e863f15
Author: Jason Crain <jason aquaticape us>
Date:   Fri Nov 11 19:48:57 2011 -0600

    Fixed attribute_name and element_name being switched in gxps_parse_error
    
    When gxps_parse_error is called with error_type
    G_MARKUP_ERROR_INVALID_CONTENT, the GError message produced has the
    attribute_name and element_name switched.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663899

 libgxps/gxps-parse-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgxps/gxps-parse-utils.c b/libgxps/gxps-parse-utils.c
index b509ee3..b85dc67 100644
--- a/libgxps/gxps-parse-utils.c
+++ b/libgxps/gxps-parse-utils.c
@@ -233,7 +233,7 @@ gxps_parse_error (GMarkupParseContext  *context,
 			g_set_error (error,
 				     G_MARKUP_ERROR, error_type,
 				     "%s:%d:%d invalid content in attribute '%s' of element '%s': %s",
-				     source, line, column, element_name, attribute_name, content);
+				     source, line, column, attribute_name, element_name, content);
 		} else {
 			g_set_error (error,
 				     G_MARKUP_ERROR, error_type,



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